rename Position get/set

This commit is contained in:
Torsten Ruger
2018-05-06 20:04:02 +03:00
parent e89c4d1ce1
commit 68fb9b1bdc
12 changed files with 41 additions and 37 deletions

View File

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