simplify writing binary

loop as should be, fixes the problem (one problem at least)
This commit is contained in:
Torsten Ruger
2018-05-13 18:01:45 +03:00
parent 866467ee5e
commit 4856b9891d
4 changed files with 18 additions and 11 deletions

View File

@ -39,10 +39,10 @@ module Risc
assert_equal 0 , Position.get(@machine.cpu_init).at
end
def test_cpu_at
assert_equal "0x5ad0" , Position.get(@machine.cpu_init.first).to_s
assert_equal "0x5ad8" , Position.get(@machine.cpu_init.first).to_s
end
def test_cpu_bin
assert_equal "0x5ac4" , Position.get(Position.get(@machine.cpu_init.first).binary).to_s
assert_equal "0x5acc" , Position.get(Position.get(@machine.cpu_init.first).binary).to_s
end
def test_cpu_label
assert_equal Position::InstructionPosition , Position.get(@machine.cpu_init.first).class