Move the conio initialization routines where they belong (cgetc), make them
module constructors/destructors and remove the conio init functions that were called from the startup code. git-svn-id: svn://svn.cc65.org/cc65/trunk@479 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -4,10 +4,9 @@
|
||||
; This must be the *first* file on the linker command line
|
||||
;
|
||||
|
||||
.export _exit
|
||||
.export _exit
|
||||
.import initlib, donelib
|
||||
.import push0, _main
|
||||
.import initconio, doneconio, zerobss
|
||||
.import push0, _main, zerobss
|
||||
|
||||
.include "plus4.inc"
|
||||
.include "../cbm/cbm.inc"
|
||||
@@ -92,10 +91,6 @@ MemOk: stx sp
|
||||
|
||||
jsr initlib
|
||||
|
||||
; Initialize conio stuff
|
||||
|
||||
jsr initconio
|
||||
|
||||
; Pass an empty command line
|
||||
|
||||
jsr push0 ; argc
|
||||
@@ -113,10 +108,6 @@ _exit: jsr donelib ; Run module destructors
|
||||
ldx spsave
|
||||
txs
|
||||
|
||||
; Reset the conio stuff
|
||||
|
||||
jsr doneconio
|
||||
|
||||
; Copy back the zero page stuff
|
||||
|
||||
ldx #zpspace-1
|
||||
|
||||
Reference in New Issue
Block a user