fix register use in putstring
was off by one, the syscall is write and the first arg is file_descriptor ie 1 == stdout
This commit is contained in:
@ -26,5 +26,10 @@ module Risc
|
||||
int = @builder.allocate_int
|
||||
assert_allocate
|
||||
end
|
||||
def test_compiler
|
||||
int = @builder.allocate_int
|
||||
assert int.compiler
|
||||
assert int.symbol.to_s.start_with?("id_fac")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user