Advertisement
Guest User

Untitled

a guest
May 13th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ; sprite data
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  5. ; sprite init JSL
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7.  
  8. dcb "INIT"
  9. RTL
  10.  
  11.  
  12. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  13. ; sprite code JSL
  14. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  15. dcb "MAIN"
  16. REP #$20 ;Set accumulator to 16-bit
  17. LDA $0F34 ;Load Coins
  18. CMP #$2EE0 ;Compare to cost-1
  19. BCS Go
  20. SEP #$20
  21. RTL
  22.  
  23. Go
  24. SEP #$20
  25. PHX ; \
  26. LDX $95 ; |
  27. PEA $0030 ; |
  28. PLA ; |
  29. STA $19B8,x ; |
  30. PLA ; | Teleport the player to level #$0149.
  31. ORA #$04 ; |
  32. STA $19D8,x ; |
  33. LDA #$06 ; |
  34. STA $71 ; |
  35. STZ $89 ; |
  36. STZ $88 ; |
  37. PLX ; /
  38. RTL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement