1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00
cc65/libsrc/pce/vce.s

22 lines
547 B
ArmAsm
Raw Normal View History

2015-08-29 13:58:57 +00:00
.export vce_init
2015-10-02 14:50:22 +00:00
.include "pce.inc"
.segment "ONCE"
vce_init:
2015-08-29 13:58:57 +00:00
; Set CTA to zero
stz VCE_ADDR_LO
stz VCE_ADDR_HI
ldy #$01 ; Only background palettes
2015-08-29 13:58:57 +00:00
vce_clear_bank:
clx ; ldx #<$0100 ; <(16 * 16)
2015-08-29 13:58:57 +00: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