debugging binaries, initial jump issues

This commit is contained in:
Torsten Ruger
2018-04-30 13:28:55 +03:00
parent d84d208192
commit 1acd231a33
7 changed files with 37 additions and 14 deletions

View File

@ -24,13 +24,6 @@ module Arm
raise "index error 0" if index == 0
index * 4
end
# Arm stores the return address in a register (not on the stack)
# The register is called link , or lr for short .
# Maybe because it provides the "link" back to the caller
# the vm defines a register for the location, so we store it there.
def translate_SaveReturn( code )
ArmMachine.str( :lr , code.register , arm_index(code) )
end
def translate_Transfer( code )
# Risc machine convention is from => to