diff options
| -rw-r--r-- | .nasm/segments.txt | 2 | ||||
| -rw-r--r-- | src/over.s | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/.nasm/segments.txt b/.nasm/segments.txt index 8a0f57c..53bf262 100644 --- a/.nasm/segments.txt +++ b/.nasm/segments.txt @@ -1,4 +1,4 @@ - HEADER: 16/16 (100%) -- ROM0: 8240/32762 (25.15%) +- ROM0: 8244/32762 (25.16%) - ROMV: 6/6 (100%) - ROM2: 8192/8192 (100%) @@ -27,7 +27,8 @@ ;; It will set 1 to the 'a' register if the timer has run out, signaling ;; that the game can start over. Otherwise it sets 0 to the 'a' register. .proc handle - ldy #0 + lda #0 + sta Globals::zp_arg3 ;; Has the "Game over" screen been displayed? If not do it now. lda Over::zp_displayed @@ -38,13 +39,13 @@ @do_handle: lda Over::zp_timer bne @dec_timer - iny + inc Globals::zp_arg3 beq @end @dec_timer: dec Over::zp_timer @end: - tya + lda Globals::zp_arg3 rts .endproc |
