dragging the extra through resets

as the binary the instruction is in may change when repositioning
This commit is contained in:
Torsten Ruger
2018-05-25 19:04:48 +03:00
parent ddd408e245
commit 6f0fad0957
8 changed files with 45 additions and 26 deletions

View File

@ -22,9 +22,9 @@ module Risc
"0x#{@at.to_s(16)}"
end
# just a callback after creation AND insertion
def init(pos)
def init(pos , is_nil)
end
def reset_to(pos)
def reset_to(pos , guaranteed_nil )
return false if pos == at
if((at - pos).abs > 1000)
raise "position set too far off #{pos}!=#{at} for #{object}:#{object.class}"