finished init routine
and better implemented sys calls
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user