Re: [stella] Re: Help with efficient code

Subject: Re: [stella] Re: Help with efficient code
From: crackers@xxxxxxxx
Date: Mon, 29 Sep 1997 19:19:32 -0400 (EDT)

I'm sorry if this is the third time everyone has seen this post, but
on my end, for some reason, everytime I post this message everything
goes nuts. I'm hoping the message goes through this time and if it has
been all along, well consider it a mid-season repeat. ;)


I was curious if there was a more efficient way to do something like this.

		lda  #$00
		sta  CHECK

checkit		ldx  CHECK
		cmp  CHECK
		beq  pointers,x
		inc  CHECK
		lda  CHECK
		cmp  #$05	;or whatever the highest check number(+1) is
		bne  checkit
		lda  STUFF	;continue with the rest of your programme
		"    "
		"    "
		"    "

pointers	jmp  framistat
		jmp  dohickey
		jmp  whachamacallit
		jmp  thingy
		jmp  dodad

Depending on the value in VARIABLE you want to go to different subroutines.
If the variable is zero then you want to run the framistat routine
or if it is one then the dohickey routine, etc.

Is this routine okay, or is it too "speghetti"?

                     (Debug the framistat from hell!!)


Accordionist - Wethifl Musician - Atari 2600 Collector | /\/\
*NEW CrAB URL* ***| \^^/
Bira Bira Devotee - FES Member - Samurai Pizza Cats Fan| =\/=

Archives updated once/day at
Unsubscribing and other info at

Current Thread