altjumps

by perryman1138

Game: SMW

Description:

;This generator makes the player continuously jump while alternating between normal jump and spinjump.
;Holding down a jump button still affects the jump like normal.
;By Catobat, no credit needed.

!FREE_RAM = $60
!addr = $0000
main:
LDA $13EF|!addr
ORA $1471|!addr
BEQ .Return
LDA !FREE_RAM
BEQ .NormalJump
LDA #$01
STA $140D|!addr
LDA #$04    ;Spinjump sound
STA $1DFC|!addr
LDA #$B0    ;Spinjump height
STA $7D
LDA #$00
STA !FREE_RAM
RTL

.NormalJump:
LDA #$01    ;Jump sound
STA $1DFA|!addr
STA !FREE_RAM
STZ $140D|!addr
LDA #$B0    ;Jump height
STA $7D
LDA #$01
.Return:
RTL
back to listings