|
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
lda VARIABLE
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
" "
" "
" "
rts
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"?
CRACKERS
(Debug the framistat from hell!!)
--
Accordionist - Wethifl Musician - Atari 2600 Collector | /\/\
*NEW CrAB URL* http://www.hwcn.org/~ad329/crab.html ***| \^^/
Bira Bira Devotee - FES Member - Samurai Pizza Cats Fan| =\/=
--
Archives updated once/day at http://www.biglist.com/lists/stella/archives/
Unsubscribing and other info at http://www.biglist.com/lists/stella/stella.html
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [stella] Re: Help with efficient co, crackers | Thread | Re: [stella] Re: Help with efficien, Jim Nitchals |
| Re: RE: [stella] Unexploited Contro, crackers | Date | Re: [stella] Re: Help with efficien, Jim Nitchals |
| Month |