create return address as own class to hold return addresses
to distinguish from integer, which does not need adjusting
This commit is contained in:
@ -46,7 +46,7 @@ module Risc
|
||||
ret = main_ticks(63)
|
||||
assert_equal FunctionReturn , ret.class
|
||||
assert_equal :r1 , ret.register.symbol
|
||||
assert_equal 19460 , @interpreter.get_register(ret.register)
|
||||
assert_equal 20612 , @interpreter.get_register(ret.register)
|
||||
end
|
||||
def test_sys
|
||||
sys = main_ticks(65)
|
||||
|
Reference in New Issue
Block a user