some more addresses

This commit is contained in:
Torsten Ruger 2018-07-15 15:13:25 +03:00
parent eaeea29e38
commit 69385c863f
5 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ module Parfait
add_type(cl.instance_type) add_type(cl.instance_type)
end end
101.times { @integers = Integer.new(0,@integers) } 101.times { @integers = Integer.new(0,@integers) }
200.times { @addresses = ReturnAddress.new(0,@addresses) } 300.times { @addresses = ReturnAddress.new(0,@addresses) }
message = Message.new(nil) message = Message.new(nil)
50.times do 50.times do
@messages = Message.new message @messages = Message.new message

View File

@ -114,7 +114,7 @@ module Parfait
count += 1 count += 1
addr = addr.next_integer addr = addr.next_integer
end end
assert_equal 200, count assert_equal 300, count
end end
def test_messages def test_messages

View File

@ -45,7 +45,7 @@ module Risc
ret = main_ticks(63) ret = main_ticks(63)
assert_equal FunctionReturn , ret.class assert_equal FunctionReturn , ret.class
assert_equal :r1 , ret.register.symbol assert_equal :r1 , ret.register.symbol
assert_equal 21732 , @interpreter.get_register(ret.register) assert_equal 23332 , @interpreter.get_register(ret.register)
end end
def test_sys def test_sys
sys = main_ticks(68) sys = main_ticks(68)

View File

@ -54,7 +54,7 @@ module Risc
end end
def test_pc1 def test_pc1
@interpreter.tick @interpreter.tick
assert_equal 21304 , @interpreter.pc assert_equal 22904 , @interpreter.pc
end end
def test_tick2 def test_tick2
@interpreter.tick @interpreter.tick
@ -68,7 +68,7 @@ module Risc
def test_pc2 def test_pc2
@interpreter.tick @interpreter.tick
@interpreter.tick @interpreter.tick
assert_equal 21308 , @interpreter.pc assert_equal 22908 , @interpreter.pc
end end
def test_tick_14_jump def test_tick_14_jump
14.times {@interpreter.tick} 14.times {@interpreter.tick}

View File

@ -25,7 +25,7 @@ module Risc
assert_equal 0 , Position.get(@linker.cpu_init).at assert_equal 0 , Position.get(@linker.cpu_init).at
end end
def test_cpu_at def test_cpu_at
assert_equal "0x61ec" , Position.get(@linker.cpu_init.first).to_s assert_equal "0x682c" , Position.get(@linker.cpu_init.first).to_s
end end
def test_cpu_label def test_cpu_label
assert_equal Position , Position.get(@linker.cpu_init.first).class assert_equal Position , Position.get(@linker.cpu_init.first).class