fix message_setup with new builder

This commit is contained in:
2020-03-02 17:50:49 +02:00
parent d0036ed95b
commit f3d299208e
5 changed files with 20 additions and 31 deletions

View File

@ -171,6 +171,7 @@ module Risc
# create operator instruction for self and add
# doesn't read quite as smoothly as one would like, but better than the compiler version
def op( operator , right)
right = right.to_reg() if(right.is_a?(RegisterSlot))
ret = Risc.op( "operator #{operator}" , operator , self , right)
compiler.add_code(ret) if compiler
ret