Advertisement
CluckFox

doHandleGameTimer.asm

Feb 18th, 2021 (edited)
451
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GetTrigger
  2. BEQ +doTimer
  3. JMP +skipTimer
  4.  
  5. +doTimer
  6. ;; Cycles the HUD element to update each timer cycle
  7. ;; NOTE: the "number" type HUD elements must all be consecutive
  8. ;; #$01, #$02, #$03 in this case, adjust for yours
  9. LDA whichHudElement
  10. CMP #$04 ;;; CHANGEME to 1 past the last element to update
  11. BNE +yesUpdateHud
  12.     LDA #$01 ;;; CHANGEME to the 1st element to update
  13.     STA whichHudElement
  14.     JMP +timerStart
  15. +yesUpdateHud
  16. UpdateHudElement whichHudElement
  17. INC whichHudElement
  18.  
  19. +timerStart
  20.  
  21. +skipTimer
Advertisement
RAW Paste Data Copied
Advertisement