Aw: [stella] New jumptable implementation.

Subject: Aw: [stella] New jumptable implementation.
From: cybergoth@xxxxxxxx
Date: Fri, 3 Jan 2003 10:06:42 +0100 (MET)
Hi there!

> As an alternative we can use the stack in combination with a RTS command:
> # Assume index is in X
>     LDA TableHi,X
>     PHA
>     LDA TableLo,X   # I hope I pushed these in the right order...
>     PHA
>     RTS
> # Put Lo and Hi Jump tables here:

You can see that in A-Team for example.

I do some other stack trickery in Star Fire. There I have jobs like:

     JSR DoThis1
     JSR DoThis2
     JSR DoThis3
     JSR DoThis4

So when in DoThis2 for example I discover that I'm completely done with all jobs, I'd bail out with

     JMP End

Arcor-Video on Demand, Ihre Online-Videothek, bietet Ihnen vom 23. Dezember
2002 bis zum 2. Januar 2003 100 festliche Filme zu funkensprühenden Preisen
Festtags-Movies und Silvesterknaller gibt es SCHON AB 99 CENT!

Archives (includes files) at
Unsub & more at

Current Thread