finished init routine

and better implemented sys calls
This commit is contained in:
Torsten Ruger
2015-06-25 16:31:09 +03:00
parent cedc6e1b61
commit 32e1903884
10 changed files with 57 additions and 26 deletions

View File

@ -1,14 +1,14 @@
module Register
# load a constant into a register
#
# first argument is the register the constant is loaded into
# second is the actual constant
# first is the actual constant, either immediate register or object reference (from the space)
# second argument is the register the constant is loaded into
class LoadConstant < Instruction
def initialize value , constant
@value = value
def initialize constant , register
@register = register
@constant = constant
end
attr_accessor :value , :constant
attr_accessor :register , :constant
end
end