11-12-2010, 11:08 PM
Ok, back into this UltraNasty bug. It seems to be related to the STR$() function (which is already buggy in the Spectrum ROM, by the way).
I've investigated a bit further, and this code also crashes the same way, and it's much simpler:
Removing s = "" makes the program to take longer to crash. I guess this is related to the str( ) function. But need more work :?
I've investigated a bit further, and this code also crashes the same way, and it's much simpler:
Code:
DIM i as Uinteger
DIM j as Uinteger = 0
Dim s as String
Function str0 as String
s = ""
s = str(j)
return s
End Function
for i = 0 to 1000
print str0()
next
Removing s = "" makes the program to take longer to crash. I guess this is related to the str( ) function. But need more work :?