get the label int to work consistently

still need to use it in the return
This commit is contained in:
Torsten Ruger
2018-05-30 10:54:18 +03:00
parent 074ec34659
commit 0dc89c772a
9 changed files with 41 additions and 32 deletions

View File

@ -52,7 +52,7 @@ module Risc
end
def test_pc1
@interpreter.tick
assert_equal 17952 , @interpreter.pc
assert_equal 18392 , @interpreter.pc
end
def test_tick2
@interpreter.tick
@ -66,7 +66,7 @@ module Risc
def test_pc2
@interpreter.tick
@interpreter.tick
assert_equal 17956 , @interpreter.pc
assert_equal 18396 , @interpreter.pc
end
def test_tick_14_jump
14.times {@interpreter.tick}