mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-02 12:29:26 +00:00
ds: move to 60Hz interrupt
This commit is contained in:
parent
a07f0d8f2e
commit
fbd613486d
@ -297,8 +297,10 @@ done_apple_detect:
|
|||||||
sta $03ff
|
sta $03ff
|
||||||
|
|
||||||
;============================
|
;============================
|
||||||
; Enable 50Hz clock on 6522
|
; Enable 60Hz clock on 6522
|
||||||
;============================
|
;============================
|
||||||
|
; yes this is horrible for PT3 files
|
||||||
|
; but in our case we are matching the screen refresh
|
||||||
|
|
||||||
sei ; disable interrupts just in case
|
sei ; disable interrupts just in case
|
||||||
|
|
||||||
@ -311,14 +313,17 @@ done_apple_detect:
|
|||||||
sta $C40D ; IFR: 1100, enable interrupt on timer one oflow
|
sta $C40D ; IFR: 1100, enable interrupt on timer one oflow
|
||||||
sta $C40E ; IER: 1100, enable timer one interrupt
|
sta $C40E ; IER: 1100, enable timer one interrupt
|
||||||
|
|
||||||
lda #$E7
|
lda #$1A
|
||||||
sta $C404 ; write into low-order latch
|
sta $C404 ; write into low-order latch
|
||||||
lda #$4f
|
lda #$41
|
||||||
sta $C405 ; write into high-order latch,
|
sta $C405 ; write into high-order latch,
|
||||||
; load both values into counter
|
; load both values into counter
|
||||||
; clear interrupt and start counting
|
; clear interrupt and start counting
|
||||||
|
|
||||||
; 4fe7 / 1e6 = .020s, 50Hz
|
|
||||||
|
; 9c40 / 1e6 = .040s, 25Hz
|
||||||
|
; 4fe7 / 1e6 = .020s, 50Hz
|
||||||
|
; 411a / 1e6 = .016s, 60Hz
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user