Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org $00D0E6
- autoclean JSL BonusStars
- NOP
- freecode
- BonusStars:
- LDY.B #$0B ; Set Y (game mode) to x0B (Fade to overworld)
- LDX.W $0DB3 ; \ Get bonus stars
- LDA.W $0F48,X ; /
- CLC ; \
- ADC #$05 ; | Adds 5 bonus stars to the player's bonus stars
- STA $0F48,X ; /
- CMP.B #$64 ; \ If bonus stars is less than 100,
- BCC EndProcess ; / branch to $8F73
- LDA.B #$FF ; \ Start bonus game when the level ends
- STA.W $1425 ; /
- LDA.W $0F48,X ; \
- SEC ; |Subtract bonus stars by 100
- SBC.B #$64 ; |
- STA.W $0F48,X ; /
- LDY.B #$11 ; Set Y (game mode) to x11 (Fade to overworld)
- EndProcess:
- LDA.W $0F31 ; \
- RTL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement