create a reduce_int on RegisterSlot

that just passes through to RegisterValue by calling to_reg
This commit is contained in:
2020-03-11 22:54:20 +02:00
parent 17a1121408
commit 2656bfacb2
7 changed files with 15 additions and 8 deletions

View File

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