ASM to Sega Genesis Platform

Would you like to react to this message? Create an account in a few clicks or log in to continue.
ASM to Sega Genesis Platform

All about assembly programming in the Sega Genesis console.


3 posters

    How to skip the score tally in Sonic 1.

    TheRetroGuy
    TheRetroGuy


    Mensagens : 21
    Data de inscrição : 2012-10-21

    How to skip the score tally in Sonic 1. Empty How to skip the score tally in Sonic 1.

    Post  TheRetroGuy Sun Oct 21, 2012 9:08 am

    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?
    TheRetroGuy
    TheRetroGuy


    Mensagens : 21
    Data de inscrição : 2012-10-21

    How to skip the score tally in Sonic 1. Empty Re: How to skip the score tally in Sonic 1.

    Post  TheRetroGuy Sun Oct 21, 2012 1:52 pm

    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?
    TheRetroGuy
    TheRetroGuy


    Mensagens : 21
    Data de inscrição : 2012-10-21

    How to skip the score tally in Sonic 1. Empty Re: How to skip the score tally in Sonic 1.

    Post  TheRetroGuy Sun Oct 21, 2012 1:58 pm

    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
    Green Snake


    Mensagens : 2185
    Data de inscrição : 2012-04-07
    Localização : I do not even know
    Current Project : nope

    How to skip the score tally in Sonic 1. Empty Re: How to skip the score tally in Sonic 1.

    Post  Green Snake Sun Oct 21, 2012 2:06 pm

    >.<
    Why you came at this site?
    TheRetroGuy
    TheRetroGuy


    Mensagens : 21
    Data de inscrição : 2012-10-21

    How to skip the score tally in Sonic 1. Empty Re: How to skip the score tally in Sonic 1.

    Post  TheRetroGuy Sun Oct 21, 2012 5:01 pm

    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
    Green Snake


    Mensagens : 2185
    Data de inscrição : 2012-04-07
    Localização : I do not even know
    Current Project : nope

    How to skip the score tally in Sonic 1. Empty Re: How to skip the score tally in Sonic 1.

    Post  Green Snake Mon Oct 22, 2012 1:40 am

    Dude, this site is joke, with tons of stolen content...
    TheRetroGuy
    TheRetroGuy


    Mensagens : 21
    Data de inscrição : 2012-10-21

    How to skip the score tally in Sonic 1. Empty Re: How to skip the score tally in Sonic 1.

    Post  TheRetroGuy Mon Oct 22, 2012 5:15 pm

    Still no success Sad . I could use a little help here.
    avatar
    JoshDP


    Mensagens : 1682
    Data de inscrição : 2014-10-05

    How to skip the score tally in Sonic 1. Empty Re: How to skip the score tally in Sonic 1.

    Post  JoshDP Thu Dec 27, 2018 3:58 pm

    Just an annual year bump! Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy bounce bounce bounce bounce bounce affraid Basketball cheers bom drunken Basketball cheers bom drunken cherry sunny Sleep

    Sponsored content


    How to skip the score tally in Sonic 1. Empty Re: How to skip the score tally in Sonic 1.

    Post  Sponsored content


      Current date/time is Thu Mar 28, 2024 1:29 pm