seperate position create and register

many test fixes
This commit is contained in:
Torsten Ruger
2018-06-15 22:00:49 +03:00
parent 9c93b38b8f
commit 698c845297
16 changed files with 75 additions and 55 deletions

View File

@@ -18,9 +18,9 @@ module Arm
def test_method_call
Risc.machine.boot
bin = Parfait::BinaryCode.new(1)
Risc::Position.new(bin , 0x20)
Risc::Position.new(bin).set(0x20)
code = @machine.call( bin ,{} )#this jumps to the next instruction
Risc::Position.new(code, 0)
Risc::Position.new(code).set(0)
assert_code code , :call, [0x08,0x0,0x0,0xeb]
end
def test_swi