rubyx/lib/slot_machine/macro/get_internal_word.rb
Torsten 2656bfacb2 create a reduce_int on RegisterSlot
that just passes through to RegisterValue by calling to_reg
2020-03-22 14:31:43 +02:00

11 lines
267 B
Ruby

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