git-svn-id: http://svn.code.sf.net/p/netboot65/code@189 93682198-c243-4bdb-bd91-e943c89aac3b

This commit is contained in:
jonnosan 2009-08-25 02:25:31 +00:00
parent a22aec2890
commit fcc394af9d

View File

@ -40,7 +40,13 @@ timer_read:
; outputs: none (all registers preserved, by carry flag can be modified)
timer_vbl_handler:
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
sta current_time_value
bcc :+