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:
cuz
2002-12-19 22:53:13 +00:00
parent 8775a9da8a
commit 181748bf03
5 changed files with 106 additions and 62 deletions

View File

@@ -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