1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 21:32:19 +00:00
cc65/libsrc/telestrat/textcolor.s

15 lines
342 B
ArmAsm
Raw Normal View History

2019-07-06 08:16:57 +00:00
; 2019-07-02, Jede (jede@oric.org)
;
.export _textcolor
2021-03-01 21:33:12 +00:00
.import CHARCOLOR, OLD_CHARCOLOR
2019-07-06 08:16:57 +00:00
.include "telestrat.inc"
.proc _textcolor
ldx CHARCOLOR ; Get previous color
2019-07-06 08:16:57 +00:00
sta CHARCOLOR
2021-03-01 21:33:12 +00:00
stx OLD_CHARCOLOR
txa ; Return previous color
2019-07-06 08:16:57 +00:00
rts
.endproc