write adjusted address

and rename integer to address in label
1k hurray
This commit is contained in:
Torsten Ruger
2018-05-31 00:07:58 +03:00
parent e39e96f646
commit 67100a3ef8
10 changed files with 36 additions and 23 deletions

View File

@ -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