1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00

Fix comment and gotox force colour change

This commit is contained in:
jede 2019-07-21 11:01:14 +02:00 committed by greg-king5
parent 996537282c
commit e7bb0aad19
2 changed files with 6 additions and 1 deletions

View File

@ -34,7 +34,7 @@ do_not_change_color_foreground:
dec SCRX ; Dec SCRX in order to place attribute before the right position
pha
txa ; Swap X to A because, X contains CHARCOLOR
txa ; Swap X to A because, X contains BGCOLOR
ORA #%00010000 ; Add 16 because background color is an attribute between 16 and 23. 17 is red background for example
BRK_TELEMON XFWR ; Change color on the screen (background)
pla

View File

@ -2,10 +2,15 @@
; jede jede@oric.org 2017-02-25
;
.export _gotox
.import OLD_CHARCOLOR, OLD_BGCOLOR
.include "telestrat.inc"
.proc _gotox
sta SCRX
lda #$FF
sta OLD_CHARCOLOR
sta OLD_BGCOLOR
rts
.endproc