mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Fix comments, return line and bordercolor return
This commit is contained in:
parent
cdbe23c351
commit
872739b5f4
@ -121,3 +121,9 @@ void shoot();
|
|||||||
void explode();
|
void explode();
|
||||||
|
|
||||||
void kbdclick1();
|
void kbdclick1();
|
||||||
|
|
||||||
|
/* The following #defines will cause the matching functions calls in conio.h
|
||||||
|
** to be overlaid by macros with the same names, saving the function call
|
||||||
|
** overhead.
|
||||||
|
*/
|
||||||
|
#define _bordercolor(color) COLOR_BLACK
|
||||||
|
@ -9,8 +9,5 @@
|
|||||||
|
|
||||||
.include "telestrat.inc"
|
.include "telestrat.inc"
|
||||||
|
|
||||||
_bordercolor:
|
_bordercolor := return0
|
||||||
; Nothing to do
|
|
||||||
; Oric can't handle his border
|
|
||||||
rts
|
|
||||||
|
|
||||||
|
@ -23,9 +23,9 @@
|
|||||||
|
|
||||||
|
|
||||||
; reset prompt position
|
; reset prompt position
|
||||||
lda #<(SCREEN)
|
lda #<SCREEN
|
||||||
sta ADSCR
|
sta ADSCR
|
||||||
lda #>(SCREEN)
|
lda #>SCREEN
|
||||||
sta ADSCR+1
|
sta ADSCR+1
|
||||||
|
|
||||||
lda #$00
|
lda #$00
|
||||||
@ -36,10 +36,10 @@
|
|||||||
stx SCRY
|
stx SCRY
|
||||||
stx SCRX
|
stx SCRX
|
||||||
|
|
||||||
stx OLD_BGCOLOR ; black
|
stx OLD_BGCOLOR ; Black
|
||||||
stx BGCOLOR
|
stx BGCOLOR
|
||||||
|
|
||||||
ldx #$07 ; white
|
ldx #$07 ; White
|
||||||
stx OLD_CHARCOLOR
|
stx OLD_CHARCOLOR
|
||||||
stx CHARCOLOR
|
stx CHARCOLOR
|
||||||
|
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
; void cputc (char c);
|
; void cputc (char c);
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _cputc, _cputcxy, cputdirect, display_conio, CHARCOLOR, OLD_CHARCOLOR, BGCOLOR, OLD_BGCOLOR
|
.export _cputc, _cputcxy, cputdirect, display_conio
|
||||||
|
.export CHARCOLOR, OLD_CHARCOLOR, BGCOLOR, OLD_BGCOLOR
|
||||||
|
|
||||||
|
|
||||||
.import update_adscr
|
.import update_adscr
|
||||||
@ -14,10 +15,10 @@
|
|||||||
|
|
||||||
cputdirect:
|
cputdirect:
|
||||||
_cputcxy:
|
_cputcxy:
|
||||||
pha ; Save C
|
pha ; Save C
|
||||||
jsr popax ; Get X and Y
|
jsr popax ; Get X and Y
|
||||||
sta SCRY ; Store Y
|
sta SCRY ; Store Y
|
||||||
stx SCRX ; Store X
|
stx SCRX ; Store X
|
||||||
jsr update_adscr
|
jsr update_adscr
|
||||||
pla
|
pla
|
||||||
|
|
||||||
@ -34,9 +35,7 @@ _cputcxy:
|
|||||||
inc SCRY
|
inc SCRY
|
||||||
jmp update_adscr
|
jmp update_adscr
|
||||||
|
|
||||||
|
|
||||||
@not_LF:
|
@not_LF:
|
||||||
|
|
||||||
ldx CHARCOLOR
|
ldx CHARCOLOR
|
||||||
cpx OLD_CHARCOLOR
|
cpx OLD_CHARCOLOR
|
||||||
beq do_not_change_color_foreground
|
beq do_not_change_color_foreground
|
||||||
@ -87,8 +86,6 @@ do_not_change_color:
|
|||||||
rts
|
rts
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.bss
|
.bss
|
||||||
CHARCOLOR:
|
CHARCOLOR:
|
||||||
.res 1
|
.res 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user