start passing positions along inside the position code

This commit is contained in:
Torsten Ruger
2018-05-08 19:59:43 +03:00
parent ce3cc72f9e
commit cf06642768
6 changed files with 48 additions and 27 deletions

View File

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