This commit is contained in:
Torsten Ruger
2014-10-05 01:13:57 +03:00
parent a99e2602ae
commit 965e5f2a0f
4 changed files with 14 additions and 6 deletions

View File

@ -1,7 +1,7 @@
module Register
# return from a function call
#register and index specify where the return address is stored
# register and index specify where the return address is stored
class FunctionReturn < Instruction
def initialize register , index

View File

@ -3,6 +3,9 @@ module Register
# save the return address of a call
# register and index specify where the return address is stored
# This instruction exists mainly, so we don't have to hard-code where the machine stores the
# address. In arm that is a register, but intel may (?) push it, and who knows, what other machines do.
class SaveReturn < Instruction
def initialize register , index
@register = register