Results 1 to 14 of 14

Thread: Super Mario Bros. - 128 Lives Fix

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Cherry (Level 1)
    Join Date
    Dec 2005
    Location
    Augusta, Georgia, USA
    Posts
    268
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    2
    Thanked in
    2 Posts

    Default

    The code must just simply be checking the 6502 N flag... In which case the fix you applied may be fine, assuming there aren't any other side effects based on the number of lives.

    I looked at the disassembly... here is the code.

    PlayerLoseLife:
    inc DisableScreenFlag ;disable screen and sprite 0 check
    lda #$00
    sta Sprite0HitDetectFlag
    lda #Silence ;silence music
    sta EventMusicQueue
    dec NumberofLives ;take one life from player
    bpl StillInGame ;if player still has lives, branch
    lda #$00
    sta OperMode_Task ;initialize mode task,
    lda #GameOverModeValue ;switch to game over mode
    sta OperMode ;and leave
    rts

    Changing "bpl StillInGame" to "bne StillInGame" should make it so the game only ends when the variable is 0, not 128-255. However, the check will be one less than normal, so test this and see if the game ends when you have one life left instead of 0.

    There may another side effect to this simple patch, though. At the end of each world, the game sets the lives to 255 when you press B. It may cause some issue. It looks like it may get set back to 3 when the game restarts anyway, so maybe not.
    Last edited by Pete Rittwage; 09-27-2014 at 10:38 AM.
    -
    Pete Rittwage
    C64 Preservation Project
    http://c64preservation.com

Similar Threads

  1. Super Mario Bros. Toy - Two Ladders & Mario Luigi Figures
    By ZackyH in forum Buying and Selling
    Replies: 5
    Last Post: 10-31-2007, 02:06 AM
  2. FS: N64 Mario Kart 64, Mario Golf, Super Smash Bros $35
    By Perkar in forum Buying and Selling
    Replies: 2
    Last Post: 08-24-2006, 11:31 PM
  3. NEW Super Mario Bros. an evolution of classic 2D Mario
    By Jasoco in forum Classic Gaming
    Replies: 28
    Last Post: 05-19-2005, 03:25 PM
  4. FA: Mario Bros / Zelda Toy Chest, Super Mario 2 Inside Out
    By TisLord in forum Buying and Selling
    Replies: 2
    Last Post: 10-21-2004, 09:25 AM
  5. Everybody Rejoice ---- Super Mario Bros. Super Show! - Vol 1
    By www.consolegames.org in forum Classic Gaming
    Replies: 11
    Last Post: 06-28-2004, 04:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •