mirror of
https://github.com/jonthomasson/retro1.git
synced 2024-06-10 05:29:33 +00:00
19 lines
415 B
Plaintext
19 lines
415 B
Plaintext
.setcpu "6502"
|
|
.include "zeropage.inc65"
|
|
.include "io.inc65"
|
|
.include "macros.inc65"
|
|
|
|
.export sid_init
|
|
|
|
.code
|
|
|
|
; Initialize the SID
|
|
sid_init: phax
|
|
lda #0
|
|
ldx #24
|
|
@clear: sta SID_BASE,x
|
|
dex
|
|
bpl @clear
|
|
plax
|
|
rts
|