getting instruction repositioning right

big bug hunt, involving complicated maths (%)
This commit is contained in:
Torsten Ruger
2018-05-24 14:27:53 +03:00
parent 0293320bb8
commit 8d510c2e7e
8 changed files with 62 additions and 44 deletions

View File

@ -74,7 +74,7 @@ module Risc
def position_all
raise "Not translated " unless @translated
#need the initial jump at 0 and then functions
Position.set(cpu_init , 0 , cpu_init)
Position.set(cpu_init , 0 , nil)
@code_start = position_objects( @platform.padding )
# and then everything code
position_code
@ -131,7 +131,7 @@ module Risc
def boot
initialize
Position.positions.clear
Position.clear_positions
@objects = nil
@translated = false
boot_parfait!