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
|
GIT
|
||||||
remote: git://github.com/salama/salama-arm.git
|
remote: git://github.com/salama/salama-arm.git
|
||||||
revision: bf9ba364343acd4afbe053a18126b87d73f43e94
|
revision: 00b175d354046a6228f66a980822eae974ca807a
|
||||||
specs:
|
specs:
|
||||||
salama-arm (0.3.0)
|
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.
|
# resetting of position used to be error, but since relink and dynamic instruction size it is ok.
|
||||||
# in measures (of 32)
|
# in measures (of 32)
|
||||||
old = cache_positions[self]
|
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}"
|
raise "position set again #{pos}!=#{old} for #{self}"
|
||||||
end
|
end
|
||||||
cache_positions[self] = pos
|
cache_positions[self] = pos
|
||||||
|
@ -24,7 +24,7 @@ module Register
|
|||||||
end
|
end
|
||||||
|
|
||||||
def reg_no
|
def reg_no
|
||||||
@type.to_s[1 .. -1].to_i
|
@symbol.to_s[1 .. -1].to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.look_like_reg is_it
|
def self.look_like_reg is_it
|
||||||
|
@ -98,13 +98,17 @@ five.putstring()"
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_puti_seven_digit
|
def test_puti_seven_digit
|
||||||
@string_input = "return 1234567.puti()"
|
@string_input = "int i = 301 * 4096
|
||||||
|
i = i + 1671
|
||||||
|
return i.puti()"
|
||||||
@stdout = " 1234567"
|
@stdout = " 1234567"
|
||||||
check_return 1234567
|
check_return 1234567
|
||||||
end
|
end
|
||||||
def test_puti_eigth_digit
|
def test_puti_eight_digit
|
||||||
@string_input = "return 123445678.puti()"
|
@string_input = "int i = 3014 * 4096
|
||||||
@stdout = " 123445678"
|
i = i + 334
|
||||||
check_return 123445678
|
return i.puti()"
|
||||||
|
@stdout = " 12345678"
|
||||||
|
check_return 12345678
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user