mirror of
https://github.com/cc65/cc65.git
synced 2024-11-18 00:07:21 +00:00
21 lines
470 B
ArmAsm
21 lines
470 B
ArmAsm
.include "pce.inc"
|
|
|
|
.export vce_init
|
|
|
|
.segment "INIT"
|
|
vce_init:
|
|
; Set CTA to zero
|
|
stz VCE_ADDR_LO
|
|
stz VCE_ADDR_HI
|
|
ldy #$01
|
|
vce_clear_bank:
|
|
ldx #$00
|
|
vce_clear_color:
|
|
stz VCE_DATA_LO ; Clear color (LSB)
|
|
stz VCE_DATA_HI ; Clear color (MSB)
|
|
dex
|
|
bne vce_clear_color
|
|
dey
|
|
bne vce_clear_bank
|
|
rts
|