Advertisement
CluckFox

partial_hud_reset.asm

Feb 19th, 2021
468
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; step 1. set myLives to 3
  2. LDA #$03
  3. STA myLives
  4.  
  5. ;; step 2. set each digit of myScore to 0
  6. TXA
  7. PHA ;; backup X register
  8. LDX #$03 ;; countdown 3, 2, 1, 0
  9. -loop
  10. LDA #$00
  11. STA myScore,x
  12. DEX
  13. BMI +done
  14. JMP -loop
  15. +done
  16. PLA
  17. TAX ;; restore X register
  18.  
Advertisement
RAW Paste Data Copied
Advertisement