write adjusted address
and rename integer to address in label 1k hurray
This commit is contained in:
@ -24,7 +24,7 @@ module Risc
|
||||
end
|
||||
def init(at, binary)
|
||||
@binary = binary
|
||||
instruction.integer.set_value(at) if instruction.is_a?(Label)
|
||||
instruction.address.set_value(at) if instruction.is_a?(Label)
|
||||
return if at == 0 and binary.nil?
|
||||
raise "faux pas" if at < Position.get(binary).at
|
||||
return unless @instruction.next
|
||||
|
Reference in New Issue
Block a user