more constants for slots

This commit is contained in:
Torsten Ruger
2014-09-20 17:06:11 +03:00
parent 4ad10d3678
commit 3d5eb685a1
3 changed files with 23 additions and 15 deletions

View File

@ -7,7 +7,7 @@ module Register
# save return register and create a new frame
to = RegisterReference.new(:r0) # message base
pc = RegisterReference.new(:pc)
move1 = RegisterMachine.instance.str( pc , to , Virtual::Slot::RETURN )
move1 = RegisterMachine.instance.str( pc , to , Virtual::Slot::MESSAGE_RETURN_VALUE )
block.replace(code , [move1] )
end
end

View File

@ -6,7 +6,7 @@ module Register
#load the return address into pc, affecting return. (other cpus have commands for this, but not arm)
message = RegisterReference.new(:r0)
pc = RegisterReference.new(:pc)
move1 = RegisterMachine.instance.ldr( pc ,message , Virtual::Slot::RETURN )
move1 = RegisterMachine.instance.ldr( pc ,message , Virtual::Slot::MESSAGE_RETURN_VALUE )
block.replace(code , [move1] )
end
end