Created
March 9, 2024 22:39
-
-
Save blondie7575/8502351ef791b674d5028c9fe1dbde47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scanLineInterruptHandler: | |
.i8 ; Interrupt firmware calls us in 8-bit native mode so make sure assembler knows that | |
.a8 | |
lda $e0c032 ; Clear scanline interrupt source | |
and #%11011111 | |
sta $e0c032 | |
clc | |
rtl | |
installVector: | |
pea $000a | |
lda #2 | |
pha | |
lda #scanLineInterruptHandler | |
pha | |
ldx #$1003 ; _SetVector | |
jsl $E10000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment