add NewMessage / Frame instructions (without actual implementation)

This commit is contained in:
Torsten Ruger
2014-09-23 19:06:10 +03:00
parent 3d5eb685a1
commit 4e01bc798f
4 changed files with 23 additions and 6 deletions

View File

@ -2,6 +2,10 @@ module Register
class ReturnImplementation
def run block
block.codes.dup.each do |code|
#TODO
- move message to new meesage
- restore caller message and self / frame
next unless code.is_a? Virtual::MethodReturn
#load the return address into pc, affecting return. (other cpus have commands for this, but not arm)
message = RegisterReference.new(:r0)