fix some pesty errors

need to fix instruction overlap beofre interpreter starts again
This commit is contained in:
Torsten Ruger
2018-06-05 19:05:12 +03:00
parent 8d953a619f
commit d7b3368b28
6 changed files with 30 additions and 40 deletions

View File

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