Move the initialization code from conio.s as constructor/destructor code
into the cgetc and cputc modules. Fix color routines using additional snippets from MagerValp. git-svn-id: svn://svn.cc65.org/cc65/trunk@1789 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
.export _cputcxy, _cputc, cputdirect, putchar
|
||||
.export newline, plot
|
||||
.constructor initcputc
|
||||
.destructor donecputc
|
||||
.import popa, _gotoxy
|
||||
.import PLOT
|
||||
|
||||
@@ -41,3 +43,15 @@ plot: ldy CURS_X
|
||||
; position in Y
|
||||
|
||||
putchar = $CC2F
|
||||
|
||||
;--------------------------------------------------------------------------
|
||||
; Module constructor/destructor
|
||||
|
||||
initcputc:
|
||||
lda #$80
|
||||
.byte $2C
|
||||
donecputc:
|
||||
lda #$00
|
||||
sta SCROLL
|
||||
rts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user