mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 21:32:19 +00:00
17 lines
569 B
ArmAsm
17 lines
569 B
ArmAsm
|
|
.include "pcengine.inc"
|
|
.export vce_init
|
|
|
|
vce_init:
|
|
stz VCE_ADDR_LO ;
|
|
stz VCE_ADDR_HI ; Set CTA to zero
|
|
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
|