Rapture(11:02:22)
what is stack overflow. uh. pls stop. my brain is still burning from your last kiss. lol
Rapture(11:02:09)
but why does it work without line numbers. a basic program is also commands that work from top to bottom , like a stack
mirrorbird(11:00:10)
unless some malicious demoscener messes with your stack, that makes perfect sense
mirrorbird(10:59:44)
what you do is: "PUSH" (on the stack) your current location. then you do the work (at some other address), then you POP (off stack) the address where you came from (we call that a pointer). and you go back to wherever that says
Rapture(10:59:04)
i used it in 80s too but it was confusing. i never jotted down anything on a paper, was all in my head, THAT'S WHY it got confusing fast. A=9 (ehh.. what was a again hmm. hehe not pro-coding)
mirrorbird(10:58:57)
well, you are coming from somewhere (an address in memory, you could POKE, a piece of your program)
mirrorbird(10:58:37)
so you ask yourself: how is GOSUB actually implemented
mirrorbird(10:58:26)
this is useful, because you can use it anywhere, and not care about line numbers.
mirrorbird(10:58:05)
you remember "GOSUB" out of basic? it's like a GOTO, but it means "do the work, and then go back to where we came from, so we can continue"