Advertisement
Erik557

Untitled

Nov 9th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ;PHP ; Preserve processor status/flags
  2. ;SEP #$30 ; Set processor 8-bit mode
  3. PHX ; Preserve X
  4. LDX #$03 ;\
  5. .loop LDA $77C0,x ; | Check for smoke sprite number
  6. BNE .next ;/
  7.  
  8. INC $77C0,x ; Increase sprite number
  9. LDA #$1B ;\ Set smoke timer
  10. STA $77CC,x ;/
  11.  
  12. LDA $3216 ;\
  13. AND #$F0 ; | Set Y-Pos
  14. STA $77C4,x ;/
  15. LDA $322C ;\
  16. AND #$F0 ; | Set X-Pos
  17. STA $77C8,x ;/
  18. BRA -
  19.  
  20. .next DEX ;\ Check next slot
  21. BPL .loop ;/
  22.  
  23. - ;PLP ; Restore processor status/flags
  24. .no PLX
  25. RTL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement