12-30-2022, 06:38 PM
(This post was last modified: 12-30-2022, 06:39 PM by James D Jarvis.)
Does the compiler convert simple GOSUB commands into GOTO commands? This little bit of code refuses to die, I thought there would be a stack overflow but nope, not while I was running it. just keeps wrapping around to -32K and counting back up until it wraps aroundound again and again.
Code: (Select All)
10 Rem bad code...bad
t1 = Timer
20 a% = 0
30 a% = a% + 1
40 Print a%, Timer - t1
50 GoSub 30