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) -g -o $@ $(AFLAGS) $(*).s
%.o: %.s
@echo $<
@$(AS) -g -o $@ $(AFLAGS) $<
C_OBJS = fclose.o fgets.o fprintf.o calloc.o _fopen.o\

View File

@@ -5,7 +5,7 @@
;
.export __horg, __hptr, __hend, __hfirst, __hlast
.export __hinit
.constructor initheap, 24
.import __BSS_RUN__, __BSS_SIZE__, __stksize
.importzp sp
@@ -17,19 +17,17 @@ __hptr:
.word __BSS_RUN__+__BSS_SIZE__ ; Dito
__hend:
.word __BSS_RUN__+__BSS_SIZE__
__hfirst:
__hfirst:
.word 0
__hlast:
.word 0
;
; Initialization. Must be called from startup!
;
; Initialization. Will be called from startup!
.code
__hinit:
initheap:
sec
lda sp
sbc __stksize
@@ -39,7 +37,3 @@ __hinit:
sta __hend+1
rts