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,7 +5,6 @@
#
%.o: %.s
@echo $<
@$(AS) -o $@ $(AFLAGS) $<
@@ -14,4 +13,4 @@ S_OBJS = crt0.o
all: $(S_OBJS)
clean:
@rm -f *.~ $(S_OBJS) core
@rm -f *.~ $(S_OBJS) core

View File

@@ -7,10 +7,11 @@
; no __hinit
.export _exit
.export _exit
.import initlib, donelib
.import pushax
.import _main
.import zerobss, doatexit
.import zerobss
; ------------------------------------------------------------------------
; Define and export the ZP variables for the C64 runtime
@@ -54,9 +55,9 @@ regbank = $a3 ; 6 bytes hopefully not used by Kernal
lda #>$7900
sta sp+1 ; Set argument stack ptr
; Initialize the heap
; Call module constructors
;;! jsr __hinit
jsr initlib
; Pass an empty command line
@@ -69,9 +70,10 @@ regbank = $a3 ; 6 bytes hopefully not used by Kernal
jsr _main ; call the users code
jmp $c1c3 ; jump to GEOS MainLoop
; exit must be called from the code!
; Call module destructors. This is also the _exit entry which must be called
; explicitly by the code.
_exit:
jsr doatexit ; call exit functions
_exit: jsr donelib ; Run module destructors
jmp $c22c ; EnterDeskTop
jmp $c22c ; EnterDeskTop

View File

@@ -1,10 +1,9 @@
#
# Makefile for GEOS lib
# for cc65
#
#
%.o: %.s
@echo $<
@$(AS) -o $@ $(AFLAGS) $<
@@ -17,4 +16,4 @@ S_OBJS = blkalloc.o calcblksfree.o changediskdevice.o chkdkgeos.o enterturbo.o e
all: $(S_OBJS)
clean:
@rm -f *.~ $(S_OBJS) core
@rm -f *.~ $(S_OBJS) core

View File

@@ -5,7 +5,6 @@
#
%.o: %.s
@echo $<
@$(AS) -o $@ $(AFLAGS) $<
@@ -16,4 +15,4 @@ S_OBJS = dodlgbox.o rstrfrmdialogue.o\
all: $(S_OBJS)
clean:
@rm -f *.~ $(S_OBJS) core
@rm -f *.~ $(S_OBJS) core

View File

@@ -1,10 +1,9 @@
#
# Makefile for GEOS lib
# for cc65
#
#
%.o: %.s
@echo $<
@$(AS) -o $@ $(AFLAGS) $<
@@ -18,4 +17,4 @@ S_OBJS = get1stdirentry.o getnxtdirentry.o\
all: $(S_OBJS)
clean:
@rm -f *.~ $(S_OBJS) core
@rm -f *.~ $(S_OBJS) core

View File

@@ -5,7 +5,6 @@
#
%.o: %.s
@echo $<
@$(AS) -o $@ $(AFLAGS) $<
@@ -19,4 +18,4 @@ S_OBJS = drawline.o drawpoint.o framerectangle.o hlineregs.o horizontalline.o\
all: $(S_OBJS)
clean:
@rm -f *.~ $(S_OBJS) core
@rm -f *.~ $(S_OBJS) core

View File

@@ -5,7 +5,6 @@
#
%.o: %.s
@echo $<
@$(AS) -o $@ $(AFLAGS) $<
@@ -16,4 +15,4 @@ S_OBJS = crc.o doublepop.o reuregs.o clearram.o fillram.o initram.o movedata.o\
all: $(S_OBJS)
clean:
@rm -f *.~ $(S_OBJS) core
@rm -f *.~ $(S_OBJS) core

View File

@@ -5,7 +5,6 @@
#
%.o: %.s
@echo $<
@$(AS) -o $@ $(AFLAGS) $<
@@ -15,4 +14,4 @@ S_OBJS = domenu.o dopreviousmenu.o redomenu.o recovermenu.o recoverallmenus.o\
all: $(S_OBJS)
clean:
@rm -f *.~ $(S_OBJS) core
@rm -f *.~ $(S_OBJS) core

View File

@@ -5,7 +5,6 @@
#
%.o: %.s
@echo $<
@$(AS) -o $@ $(AFLAGS) $<
@@ -17,4 +16,4 @@ S_OBJS = startmousemode.o clearmousemode.o mouseup.o mouseoff.o\
all: $(S_OBJS)
clean:
@rm -f *.~ $(S_OBJS) core
@rm -f *.~ $(S_OBJS) core

View File

@@ -5,7 +5,6 @@
#
%.o: %.s
@echo $<
@$(AS) -o $@ $(AFLAGS) $<
@@ -14,4 +13,4 @@ S_OBJS = processinitrestartenable.o processblock.o processfreeze.o sleep.o
all: $(S_OBJS)
clean:
@rm -f *.~ $(S_OBJS) core
@rm -f *.~ $(S_OBJS) core

View File

@@ -5,7 +5,6 @@
#
%.o: %.s
@echo $<
@$(AS) -o $@ $(AFLAGS) $<
@@ -15,4 +14,4 @@ S_OBJS = callroutine.o enterdesktop.o firstinit.o getrandom.o getserialnumber.o\
all: $(S_OBJS)
clean:
@rm -f *.~ $(S_OBJS) core
@rm -f *.~ $(S_OBJS) core