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

@@ -6,7 +6,7 @@
.export _exit
.import condes, initlib, donelib
.import initconio, doneconio, zerobss
.import zerobss
.import push0, _main
.import RESTOR, BSOUT, CLRCH
.import __IRQFUNC_TABLE__, __IRQFUNC_COUNT__
@@ -93,10 +93,6 @@ L1: lda sp,x
jsr initlib
; Initialize conio stuff
jsr initconio
; If we have IRQ functions, chain our stub into the IRQ vector
lda #<__IRQFUNC_COUNT__
@@ -136,10 +132,6 @@ _exit: lda #<__IRQFUNC_COUNT__
NoIRQ2: jsr donelib
; Reset the conio stuff
jsr doneconio
; Reset the stack
ldx spsave