mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 02:29:52 +00:00
e1e6bec9ff
- rename screen_setup to initconio - use Greg King's version of bgcolor()
27 lines
446 B
ArmAsm
27 lines
446 B
ArmAsm
;
|
|
; Greg King, 10-Apr-2019
|
|
;
|
|
|
|
.export _bgcolor
|
|
|
|
.include "atari5200.inc"
|
|
|
|
.data
|
|
|
|
old_bg_index:
|
|
.byte COLOR_BLACK ; see conioscreen.s for default palette
|
|
|
|
.code
|
|
|
|
_bgcolor:
|
|
and #$03
|
|
tax
|
|
ldy COLOR0,x
|
|
lda old_bg_index
|
|
sty COLOR4 ; set new value
|
|
stx old_bg_index
|
|
ldx #0 ; fix high byte
|
|
rts
|
|
|
|
.end
|