update arm and small arm fixes

constants in arm chunks, needs better solution
This commit is contained in:
Torsten Ruger
2015-11-14 13:05:49 +02:00
parent dbcd39c277
commit 8fa92515b5
4 changed files with 12 additions and 8 deletions

View File

@ -60,7 +60,7 @@ class Symbol
# resetting of position used to be error, but since relink and dynamic instruction size it is ok.
# in measures (of 32)
old = cache_positions[self]
if old != nil and ((old - pos).abs > 32)
if old != nil and ((old - pos).abs > 2000)
raise "position set again #{pos}!=#{old} for #{self}"
end
cache_positions[self] = pos

View File

@ -24,7 +24,7 @@ module Register
end
def reg_no
@type.to_s[1 .. -1].to_i
@symbol.to_s[1 .. -1].to_i
end
def self.look_like_reg is_it