not wrapping the cpu initial jump anymore

also introduce padding after cpu_init (wip)
This commit is contained in:
Torsten Ruger
2018-05-12 18:36:59 +03:00
parent 232fe67c09
commit 2d901bf7b6
5 changed files with 26 additions and 42 deletions

View File

@ -15,8 +15,12 @@ module Risc
@method = method
end
def init(at)
return unless code.next
Position.set(code.next , at + code.padded_length, method)
next_pos = at + code.padded_length
if code.next
Position.set(code.next , next_pos, method)
else
Position.set(method , next_pos)
end
end
def reset_to(pos)
super(pos)