Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; sprite data
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; sprite init JSL
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- dcb "INIT"
- RTL
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; sprite code JSL
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- dcb "MAIN"
- REP #$20 ;Set accumulator to 16-bit
- LDA $0F34 ;Load Coins
- CMP #$2EE0 ;Compare to cost-1
- BCS Go
- SEP #$20
- RTL
- Go
- SEP #$20
- PHX ; \
- LDX $95 ; |
- PEA $0030 ; |
- PLA ; |
- STA $19B8,x ; |
- PLA ; | Teleport the player to level #$0149.
- ORA #$04 ; |
- STA $19D8,x ; |
- LDA #$06 ; |
- STA $71 ; |
- STZ $89 ; |
- STZ $88 ; |
- PLX ; /
- RTL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement