write adjusted address
and rename integer to address in label 1k hurray
This commit is contained in:
@ -141,7 +141,7 @@ module Risc
|
||||
def execute_LoadConstant
|
||||
to = @instruction.register
|
||||
value = @instruction.constant
|
||||
value = value.integer if value.is_a?(Label)
|
||||
value = value.address if value.is_a?(Label)
|
||||
set_register( to , value )
|
||||
true
|
||||
end
|
||||
|
Reference in New Issue
Block a user