Initial Agat support
This commit is contained in:
21
libsrc/agat/color.s
Normal file
21
libsrc/agat/color.s
Normal file
@@ -0,0 +1,21 @@
|
||||
;
|
||||
; Oleg A. Odintsov, Moscow, 2024
|
||||
;
|
||||
; unsigned char __fastcall__ textcolor (unsigned char color);
|
||||
;
|
||||
|
||||
|
||||
.export _textcolor
|
||||
.include "agat.inc"
|
||||
|
||||
|
||||
_textcolor:
|
||||
ldx TATTR
|
||||
eor TATTR
|
||||
and #$07
|
||||
eor TATTR
|
||||
sta TATTR
|
||||
txa
|
||||
and #$0F
|
||||
rts
|
||||
|
||||
Reference in New Issue
Block a user