Subject: RE: [stella] Trouble with AtariVox code - please help! From: "Bob Montgomery" <BobM@xxxxxxxxxxx> Date: Wed, 1 Jun 2005 13:20:04 -0400 |
I don't think the CompareHighScoreSubroutine would affect anything; but here it is just in case. -bob CompareHighScoreSubroutine ;--this is the generic version of the new high score checker sed ldx #4 NewHighScoreLoop lda HighScore,X sec sbc Temp+1 bcc NewHighScore bne NoNewHighScore ;--thousands and hundreds digits equal, possible high score lda HighScore+1,X sbc Temp+2 ;carry still set bcc NewHighScore ;--no high score, but possible tie, if A == 0 bne NoNewHighScore NewHighScore cpx #0 beq SetNewHighScore ;--if X==0, then just replace bottom high score stx Temp ldx #0 AdjustHighScoreLoop lda HighScore+2,X sta HighScore,X lda HighScore+3,X sta HighScore+1,X inx inx cpx Temp bne AdjustHighScoreLoop ldx Temp SetNewHighScore lda Temp+1 sta HighScore,X lda Temp+2 sta HighScore+1,X jmp DoneCheckingHighScore NoNewHighScore dex dex bpl NewHighScoreLoop DoneCheckingHighScore cld rts -----Original Message----- From: Aaron [mailto:stella-receiver@xxxxxxxxxxxxxxxxx] Sent: Wednesday, June 01, 2005 10:12 AM To: stella@xxxxxxxxxxxxxxxxxx Subject: Re: [stella] Trouble with AtariVox code - please help! Bob Montgomery said: > I'm having trouble getting my code to work that is supposed to read/write > high scores to the AtariVox. Would someone take a look at this routine and > see if they can see what I am doing wrong? I took a quick look through and didn't see anything /obviously/ wrong. Could it be something in CompareHighScoreSubroutine? (which you didn't post) Also um, it might be that Fall Down works only by some strange coincidence. I don't really know the AtariVox /that/ well. -Aaron Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://stella.biglist.com Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://stella.biglist.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] Trouble with AtariVox , Aaron | Thread | Re: [stella] Trouble with AtariVox , Alex Herbert |
Re: [stella] Trouble with AtariVox , Aaron | Date | Re: [stella] Games using unofficial, Gene Johannsen |
Month |