fix resolve and introduce method to chop strings to max

strings are 20 bytes. I want to implement the extension idea, just not now
This commit is contained in:
2020-03-13 15:50:50 +02:00
parent 407ca6ef72
commit f2250bc206
3 changed files with 20 additions and 11 deletions

View File

@ -11,7 +11,7 @@ module SlotMachine
def to_risc(compiler)
builder = compiler.builder(compiler.source_name)
from = compiler.load_object(Parfait.new_word(@name))
from = compiler.load_object(Parfait.new_word_max(@name))
to = Risc::RegisterValue.new(:r1 , :Word)
builder.add_code Risc::Transfer.new(self , from , to)
builder.add_code Risc::Syscall.new(self, :died )