debugging positions
This commit is contained in:
@ -21,7 +21,7 @@ module Arm
|
||||
Positioned.set_position(bin , 0x20)
|
||||
code = @machine.call( bin ,{} )#this jumps to the next instruction
|
||||
Positioned.set_position(code , 0)
|
||||
assert_code code , :call, [0x08,0x0,0x0,0xeb]
|
||||
assert_code code , :call, [0x09,0x0,0x0,0xeb]
|
||||
end
|
||||
def test_swi
|
||||
code = @machine.swi( 0x05 )
|
||||
|
@ -99,7 +99,7 @@ module Arm
|
||||
|
||||
def test_move_object
|
||||
code = @machine.add( :r1 , label)
|
||||
code.set_position(0)
|
||||
code.set_position(0,0)
|
||||
assert_code code , :add , [0x22,0x10,0x9f,0xe2] #e2 9f 10 22
|
||||
end
|
||||
|
||||
|
@ -37,6 +37,6 @@ class TestPositioned < MiniTest::Test
|
||||
|
||||
def test_pos_arm
|
||||
mov = Arm::ArmMachine.mov :r1, 128
|
||||
mov.set_position(0)
|
||||
mov.set_position(0,0)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user