mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-08-07 07:29:03 +00:00
git-svn-id: http://svn.code.sf.net/p/netboot65/code@189 93682198-c243-4bdb-bd91-e943c89aac3b
This commit is contained in:
parent
a22aec2890
commit
fcc394af9d
@ -40,7 +40,13 @@ timer_read:
|
|||||||
; outputs: none (all registers preserved, by carry flag can be modified)
|
; outputs: none (all registers preserved, by carry flag can be modified)
|
||||||
timer_vbl_handler:
|
timer_vbl_handler:
|
||||||
pha
|
pha
|
||||||
lda #$11
|
lda $02A6 ;PAL/NTSC flag (0 = NTSC, 1 = PAL),
|
||||||
|
beq @was_ntsc
|
||||||
|
lda #$14 ;PAL = 50 HZ =~ 20 ms per 'tick'
|
||||||
|
bne :+
|
||||||
|
@was_ntsc:
|
||||||
|
lda #$11 ;NTSC = 60 HZ =~ 17 ms per 'tick'
|
||||||
|
:
|
||||||
adc current_time_value
|
adc current_time_value
|
||||||
sta current_time_value
|
sta current_time_value
|
||||||
bcc :+
|
bcc :+
|
||||||
|
Loading…
Reference in New Issue
Block a user