rubyx/lib/slot_machine/macro/get_internal_word.rb
Torsten 05ddc70fd6 fix get_internal word register names
seems previous commits broke the return
2020-03-22 14:31:43 +02:00

11 lines
274 B
Ruby

module SlotMachine
class GetInternalWord < Macro
def to_risc(compiler)
compiler.builder(compiler.source).build do
integer = message[:arg1].to_reg.reduce_int(false)
message[:return_value] << message[:receiver][integer]
end
end
end
end