Re: Aw: Re: [stella] Euchre: up against the wall again

Subject: Re: Aw: Re: [stella] Euchre: up against the wall again
From: Manuel Polik <cybergoth@xxxxxxxx>
Date: Sun, 25 Nov 2001 18:19:44 +0100
Hi Erik!

>>- remove all
>>     jmp EndCase
>>
>>   In your switch/case implementation.

>I'm pondering using a jump table, in which case I will 
need to retain these 
>to prevent from accessing too many PerformXxxx 
routines.

Well, wouldn't a jump-tabled approach look like this:

; Init stack for faked jsr
                lda #<retPoint
                pha
                lda #>retPoint
                pha

; Prepare vector
                lda Stage
                asl
                tax
                lda jumpTab,x
                sta jumpVec
                inx
                lda jumpTab,x
                sta jumpVec+1
                jmp (jumpVec)

; Continue here
retPoint

WaitOverscan
                lda INTIM
                nop
                bne WaitOverscan                

Good idea btw, could save you both ROM & cycles! :-)

Greetings,
	Manuel

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread