lemm: hook up timer to clock

This commit is contained in:
Vince Weaver 2022-03-09 23:56:41 -05:00
parent 9a203bcea4
commit 1b29a4689d
3 changed files with 12 additions and 1 deletions

View File

@ -29,6 +29,7 @@ interrupt_handler:
; inc $0404 ; debug (flashes char onscreen)
inc TIMER_COUNT
pt3_irq_smc1:
bit MOCK_6522_T1CL ; clear 6522 interrupt by reading T1C-L ; 4

View File

@ -287,9 +287,10 @@ zurg:
lda #$5
sta TIME_MINUTES
lda #$12
lda #$00
sta TIME_SECONDS
sta TIMER_COUNT
;===================
;===================
@ -319,8 +320,16 @@ door_is_open:
jsr draw_flames
lda TIMER_COUNT
cmp #$50
bcc timer_not_yet
jsr update_time
lda #$0
sta TIMER_COUNT
timer_not_yet:
jsr draw_pointer

View File

@ -60,6 +60,7 @@ CHUNK_NEXT_LOAD = $7D
CHUNK_NEXT_PLAY = $7E
LOAD_NEXT_CHUNK = $7F
OVER_LEMMING = $80
TIMER_COUNT = $81
APPLEII_MODEL = $8B