Skip to content

Commit

Permalink
Fix initialization of T2 in eater systick code (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
rweather authored Sep 1, 2023
1 parent f782500 commit 2cd51f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mos-platform/eater/crt0/systick.S
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ __do_init_systick:
lda #$a0 ; Enable T2 interrupts.
sta VIA_IER
lda #$00 ; T2 in one-shot mode.
sta VIA_ACR
lda #mos16lo(T2COUNT) ; T2 interrupt every 1000 clock ticks.
sta VIA_T2CL
lda #mos16hi(T2COUNT)
Expand Down

0 comments on commit 2cd51f1

Please sign in to comment.