positioning code by setting first method code

codes will initial (and on reset) propagate the whole chain
This commit is contained in:
Torsten Ruger
2018-05-13 15:28:10 +03:00
parent 7ad36380c2
commit 39902401b9
8 changed files with 88 additions and 32 deletions

View File

@@ -18,7 +18,7 @@ module Arm
def test_method_call
Risc.machine.boot
bin = Parfait::BinaryCode.new(1)
Risc::Position.set(bin , 0x20)
Risc::Position.set(bin , 0x20,Parfait.object_space.get_main)
Risc::Position.set(@binary , 0)
code = @machine.call( bin ,{} )#this jumps to the next instruction
Risc::Position.set(code , 0, @binary)