Does anyone know how to skip the score tally when a button is pressed (except the select and start button) in Sonic 1 like in Sonic Megamix but still get the points that you earned? If so what should I do or where do I start?
3 posters
How to skip the score tally in Sonic 1.
TheRetroGuy- Mensagens : 21
Data de inscrição : 2012-10-21
TheRetroGuy- Mensagens : 21
Data de inscrição : 2012-10-21
Oh and I just dug around in my Sonic1.asm and I found this:
What should I do to this routine to make it skip the score tally when I press the A, B or C button?
- Code:
; ---------------------------------------------------------------------------
; Add points subroutine
; ---------------------------------------------------------------------------
; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
AddPoints:
move.b #1,($FFFFFE1F).w ; set score counter to update
lea ($FFFFFFC0).w,a2
lea ($FFFFFE26).w,a3
add.l d0,(a3) ; add d0*10 to the score
move.l #999999,d1
cmp.l (a3),d1 ; is #999999 higher than the score?
bhi.w loc_1C6AC ; if yes, branch
move.l d1,(a3) ; reset score to #999999
move.l d1,(a2)
loc_1C6AC:
move.l (a3),d0
cmp.l (a2),d0
bcs.w locret_1C6B6
move.l d0,(a2)
locret_1C6B6:
rts
; End of function AddPoints
What should I do to this routine to make it skip the score tally when I press the A, B or C button?
TheRetroGuy- Mensagens : 21
Data de inscrição : 2012-10-21
TheRetroGuy wrote:Oh and I just dug around in my Sonic1.asm and I found this:
- Code:
; ---------------------------------------------------------------------------
; Add points subroutine
; ---------------------------------------------------------------------------
; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
AddPoints:
move.b #1,($FFFFFE1F).w ; set score counter to update
lea ($FFFFFFC0).w,a2
lea ($FFFFFE26).w,a3
add.l d0,(a3) ; add d0*10 to the score
move.l #999999,d1
cmp.l (a3),d1 ; is #999999 higher than the score?
bhi.w loc_1C6AC ; if yes, branch
move.l d1,(a3) ; reset score to #999999
move.l d1,(a2)
loc_1C6AC:
move.l (a3),d0
cmp.l (a2),d0
bcs.w locret_1C6B6
move.l d0,(a2)
locret_1C6B6:
rts
; End of function AddPoints
What should I do to this routine to make it skip the score tally when I press the A, B or C button?
I want it to add the bonus immediately after I press the buttons I mentioned. Just like in Sonic Megamix.
Green Snake- Mensagens : 2185
Data de inscrição : 2012-04-07
Localização : I do not even know
Current Project : nope
>.<
Why you came at this site?
Why you came at this site?
TheRetroGuy- Mensagens : 21
Data de inscrição : 2012-10-21
I'm still trying to make it skip, add the bonus and play the register sound but I don't know what to do.
Green Snake- Mensagens : 2185
Data de inscrição : 2012-04-07
Localização : I do not even know
Current Project : nope
Dude, this site is joke, with tons of stolen content...
TheRetroGuy- Mensagens : 21
Data de inscrição : 2012-10-21
Still no success . I could use a little help here.
JoshDP- Mensagens : 1682
Data de inscrição : 2014-10-05
Just an annual year bump!
» ASM to Sega Genesis Platform vs Sonic Stuff Research Group vs Sonic Retro vs Sonic Stadium vs Sonic Games Dimension vs Sonic the Hedgehog HD team
» Sonic and Tails Coop in Sonic 1 (Sonic 2 style)
» Sonic 2 Sega Screen (Large Sonic Object)
» Sonic Open Source Project vs Sonic Green Snake
» Sonic Open Source Project vs Sonic Green Snake pre-v4 (3.68)
» Sonic and Tails Coop in Sonic 1 (Sonic 2 style)
» Sonic 2 Sega Screen (Large Sonic Object)
» Sonic Open Source Project vs Sonic Green Snake
» Sonic Open Source Project vs Sonic Green Snake pre-v4 (3.68)