NoLeft

by earthmelon

Game: SMW

Description:

; Limit the number of times a Player can press the Left button.

!LLIMIT = #5

; ----------------------------------------------------------------------------

init:
    BPL GiveLefts
    RTL

main:
    LDA $0016
    BIT #2
    BNE IncLefter
    RTL

; ----------------------------------------------------------------------------

GiveLefts:
    LDA #0
    STA $1696
    RTL

PowerDown:
    BPL GiveLefts
    JSL $00F5B7
    RTL

IncLefter:
    INC $1696
    LDA $1696
    CMP !LLIMIT
    BPL DoTheDeath
    RTL

DoTheDeath:
    JSL $00F606
    RTL
back to listings