[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Introducing: Magic Gosub
On Aug 13, 8:25 pm, aiiad...@gmail.com wrote:
> On Monday, August 13, 2012 1:34:34 PM UTC-7, D Finnigan wrote:
> > Were you inspired by the "GOTO label" article in one of those issues of
>
> > Computist? It's a great coincidence, because I happened to be browsing these
>
> > magazines from Mr. Maginnis's Computist DVD, then I saw this announcement
>
> > the next day.
>
> Do you know which issue?
>
> Rich
It's here:
http://archive.org/stream/computist-core-issue-2/issue2#page/n25/mode/2up
I actually hadn't seen GOTO Label. Thanks for pointing it out! (For
those who haven't clicked through, it's a routine which uses the
ampersand vector to implement &GOTO, &GOSUB, and &ON to reference
quoted labels in REM statements, quite similarly to Magic Gosub.)
The major thing Magic Gosub does differently is exploit the native
behavior of the GOSUB command (it uses line 0 by default), leaving
the ampersand vector free for other uses. But this also yields Magic
Gosub syntax like "GOSUB @" to mean GOTO, rather than the more
straightforward &GOTO command in the Core article.
The article also provides a utility to "delabel" your code back into
standard Applesoft, so you don't need their routine to execute your
program. My solution to that is Slammer, which allows you to provide
Magic Gosub within the program itself.