fix most interpreter tests

This commit is contained in:
2020-03-22 10:42:50 +02:00
parent 06ade75593
commit a93a3c8af5
13 changed files with 35 additions and 32 deletions

View File

@ -267,7 +267,7 @@ module Risc
end
def handle_putstring
str = get_register( :"syscall_1" ) # should test length, ie r2
str = get_register( :r0 ) # should test length, ie r2
case str
when Symbol
@stdout << str.to_s

View File

@ -40,6 +40,8 @@ module Risc
:r0
when :syscall_2
:r1
when :saved_message
:r15
else
nil
end