Use the condes feature

git-svn-id: svn://svn.cc65.org/cc65/trunk@470 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-11-22 22:19:09 +00:00
parent cefb4c067d
commit f3b93741ab
32 changed files with 104 additions and 129 deletions

View File

@@ -5,12 +5,10 @@
.SUFFIXES: .o .s .c
%.o: %.c
@echo $<
@$(CC) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
%.o: %.s
@echo $<
@$(AS) -g -o $@ $(AFLAGS) $<
C_OBJS =

View File

@@ -5,8 +5,9 @@
;
.export _exit
.import __hinit, initconio, doneconio, zerobss
.import push0, doatexit, _main
.import initlib, donelib
.import initconio, doneconio, zerobss
.import push0, _main
.include "c128.inc"
.include "../cbm/cbm.inc"
@@ -93,9 +94,9 @@ L1: lda sp,x
lda #>$C000
sta sp+1
; Initialize the heap
; Call module constructors
jsr __hinit
jsr initlib
; Initialize conio stuff
@@ -109,9 +110,9 @@ L1: lda sp,x
ldy #4 ; Argument size
jsr _main ; call the users code
; fall thru to exit...
; Call module destructors. This is also the _exit entry.
_exit: jsr doatexit ; call exit functions
_exit: jsr donelib ; Run module destructors
; Reset the conio stuff