プレイ日記
TFlan nuynuf
So, it says there's a stack overflow in 19, I have a GOSUB later in it to @PKMBTLSYS, to stop an infinite loop to a part that shouldn't yet be accessed, so, what exactly is wrong, and if you can help, how can I fix it?
2そうだね
プレイ済み
返信[1]
親投稿
Pkyoshi19 Pokeyoshi19
Well, any GOSUB needs a RETURN.
0そうだね
プレイ済み
返信[2]
親投稿
Hanzo rzsense
As Pkyoshi19 has said, a subroutine which can be called by GOSUB has to be followed by RETURN. RETURN removes a program counter which has been stacked by GOSUB from memory. However GOSUB without RETURN keeps memory stacking and stack overflow will occur soon.
0そうだね
未プレイ
返信[3]
親投稿
Hanzo rzsense
In this case, I guess you should apply GOTO instead of GOSUB.
0そうだね
未プレイ