mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
Fix comment and gotox force colour change
This commit is contained in:
parent
996537282c
commit
e7bb0aad19
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user