update arm and small arm fixes
constants in arm chunks, needs better solution
This commit is contained in:
parent
dbcd39c277
commit
8fa92515b5
@ -1,6 +1,6 @@
|
||||
GIT
|
||||
remote: git://github.com/salama/salama-arm.git
|
||||
revision: bf9ba364343acd4afbe053a18126b87d73f43e94
|
||||
revision: 00b175d354046a6228f66a980822eae974ca807a
|
||||
specs:
|
||||
salama-arm (0.3.0)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -98,13 +98,17 @@ five.putstring()"
|
||||
end
|
||||
|
||||
def test_puti_seven_digit
|
||||
@string_input = "return 1234567.puti()"
|
||||
@string_input = "int i = 301 * 4096
|
||||
i = i + 1671
|
||||
return i.puti()"
|
||||
@stdout = " 1234567"
|
||||
check_return 1234567
|
||||
end
|
||||
def test_puti_eigth_digit
|
||||
@string_input = "return 123445678.puti()"
|
||||
@stdout = " 123445678"
|
||||
check_return 123445678
|
||||
def test_puti_eight_digit
|
||||
@string_input = "int i = 3014 * 4096
|
||||
i = i + 334
|
||||
return i.puti()"
|
||||
@stdout = " 12345678"
|
||||
check_return 12345678
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user