1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-25 06:17:58 +00:00

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
-2
View File
@@ -5,11 +5,9 @@
.SUFFIXES: .o .s .c
.c.s:
@echo $<
@$(CC) $(CFLAGS) $<
.s.o:
@echo $<
@$(AS) -g -o $@ $(AFLAGS) $<
OBJS = add.o \
+7 -7
View File
@@ -16,7 +16,7 @@
; lies in the data segment so it's address may be patched at runtime.
;
.export libinit, libdone, condes
.export initlib, donelib, condes
.export jmpvec
.import __CONSTRUCTOR_TABLE__, __CONSTRUCTOR_COUNT__
@@ -29,7 +29,7 @@
; --------------------------------------------------------------------------
; Initialize library modules
.proc libinit
.proc initlib
lda #<__CONSTRUCTOR_TABLE__
ldx #>__CONSTRUCTOR_TABLE__
@@ -43,12 +43,12 @@
; --------------------------------------------------------------------------
; Cleanup library modules
.proc libdone
.proc donelib
lda #<__DESTRUCTOR_TABLE__
ldx #>__DESTRUCTOR_TABLE__
ldy #<(__DESTRUCTOR_COUNT__*2)
bne condes
lda #<__DESTRUCTOR_TABLE__
ldx #>__DESTRUCTOR_TABLE__
ldy #<(__DESTRUCTOR_COUNT__*2)
bne condes
rts
.endproc