retro1/software/retro1-tests/rtc-test/sid.s65
2017-04-17 10:09:33 -07:00

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