diff --git a/lib/slot_machine/instructions/resolve_method.rb b/lib/slot_machine/instructions/resolve_method.rb index aff0b112..4625584c 100644 --- a/lib/slot_machine/instructions/resolve_method.rb +++ b/lib/slot_machine/instructions/resolve_method.rb @@ -59,7 +59,7 @@ module SlotMachine next_method = callable_method[:next_callable].to_reg callable_method << next_method - + branch while_start_label add_code exit_label diff --git a/test/risc/binary/test_linker.rb b/test/risc/binary/test_linker.rb index f276ef3d..3d66c8a2 100644 --- a/test/risc/binary/test_linker.rb +++ b/test/risc/binary/test_linker.rb @@ -24,7 +24,7 @@ module Risc assert_equal 0 , Position.get(@linker.cpu_init).at end def test_cpu_at - assert_equal "0x8d7c" , Position.get(@linker.cpu_init.first).to_s + assert_equal "0x8d5c" , Position.get(@linker.cpu_init.first).to_s end def test_cpu_label assert_equal Position , Position.get(@linker.cpu_init.first).class diff --git a/test/risc/interpreter/calling/test_minus.rb b/test/risc/interpreter/calling/test_minus.rb index 463f91fe..f0317d50 100644 --- a/test/risc/interpreter/calling/test_minus.rb +++ b/test/risc/interpreter/calling/test_minus.rb @@ -35,7 +35,7 @@ module Risc ret = main_ticks(46) assert_equal FunctionReturn , ret.class assert_equal :r0 , ret.register.symbol - assert_equal 36540 , @interpreter.get_register(ret.register).value + assert_equal 36508 , @interpreter.get_register(ret.register).value end end end diff --git a/test/risc/test_collector.rb b/test/risc/test_collector.rb index fec8e424..c436aced 100644 --- a/test/risc/test_collector.rb +++ b/test/risc/test_collector.rb @@ -38,7 +38,7 @@ module Risc end def len - 1426 + 1425 end def test_collect_all_types @@ -70,7 +70,7 @@ module Risc end def len - 2906 + 2905 end end end diff --git a/test/risc/test_interpreter.rb b/test/risc/test_interpreter.rb index 24819362..646b7da4 100644 --- a/test/risc/test_interpreter.rb +++ b/test/risc/test_interpreter.rb @@ -58,7 +58,7 @@ module Risc end def test_pc @interpreter.tick - assert_equal t = 36104 , @interpreter.pc + assert_equal t = 36072 , @interpreter.pc @interpreter.tick assert_equal t + 4 , @interpreter.pc end