Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blondie7575/8502351ef791b674d5028c9fe1dbde47 to your computer and use it in GitHub Desktop.
Save blondie7575/8502351ef791b674d5028c9fe1dbde47 to your computer and use it in GitHub Desktop.
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