changed end_em to library to avoid namespace pollution

This commit is contained in:
eck 1990-09-27 14:29:09 +00:00
parent 81ce150a96
commit 56502994f4
8 changed files with 57 additions and 21 deletions

View file

@ -1,6 +1,9 @@
LIST LIST
Makefile Makefile
compmodule compmodule
em_end.s
etext.s
edata.s
end.s end.s
libem_s.a libem_s.a
trpstr.c trpstr.c

View file

@ -1,20 +1,25 @@
# $Header$ # $Header$
MACH=m68020 MACH=m68020
all: libem_o.a end.o ASAR=aal
all: libem_o.a end.a
install: all install: all
../../install libem_o.a tail_em ../../install libem_o.a tail_em
../../install end.o end_em ../../install end.a end_em
cmp: all cmp: all
-../../compare libem_o.a tail_em -../../compare libem_o.a tail_em
-../../compare end.o end_em -../../compare end.a end_em
end.o: end.s end.a: em_end.s etext.s edata.s end.s
$(MACH) -I../../../h -c em_end.s
$(MACH) -I../../../h -c edata.s
$(MACH) -I../../../h -c etext.s
$(MACH) -I../../../h -c end.s $(MACH) -I../../../h -c end.s
$(ASAR) cr end.a em_end.o etext.o edata.o end.o
libem_o.a: libem_s.a libem_o.a: libem_s.a
ASAR=aal ; export ASAR ;\ ASAR=$(ASAR) ; export ASAR ;\
march . libem_o.a march . libem_o.a
clean: clean:

View file

@ -112,7 +112,7 @@ putchar:
move.l #1, -(sp) move.l #1, -(sp)
pea (11,sp) pea (11,sp)
move.l #1, -(sp) move.l #1, -(sp)
jsr (_write) jsr (__write)
lea (12, sp), sp lea (12, sp), sp
rts rts
.align 2 .align 2

View file

@ -0,0 +1,9 @@
.sect .text
.sect .rom
.sect .data
.sect .bss
.define _edata
.sect .data
.align 4
.sect .data
_edata:

View file

@ -0,0 +1,22 @@
.sect .text
.sect .rom
.sect .data
.sect .bss
.define endtext,enddata,endbss,__end
.sect .text
.align 4
.sect .rom
.align 4
.sect .data
.align 4
.sect .bss
.align 4
.sect .end ! only for declaration of _end and endbss.
.sect .text
endtext:
.sect .data
enddata:
.sect .end
__end:
endbss:

View file

@ -1,20 +1,8 @@
.define endtext,enddata,endbss,_etext,_edata,_end
.sect .text .sect .text
.align 4
.sect .rom .sect .rom
.align 4
.sect .data .sect .data
.align 4
.sect .bss .sect .bss
.align 4 .define _end
.sect .end ! only for declaration of _end and endbss. .sect .end ! only for declaration of _end, __end and endbss.
.sect .text
endtext:
_etext:
.sect .data
enddata:
_edata:
.sect .end .sect .end
_end: _end:
endbss:

View file

@ -0,0 +1,9 @@
.sect .text
.sect .rom
.sect .data
.sect .bss
.define _etext
.sect .text
.align 4
.sect .text
_etext:

View file

@ -14,7 +14,7 @@ EHEAP=17
add.l #0x400, d1 add.l #0x400, d1
and.l #~0x3ff, d1 and.l #~0x3ff, d1
move.l d1, -(sp) move.l d1, -(sp)
jsr (_brk) ! allocate 1K bytes of extra storage jsr (__brk) ! allocate 1K bytes of extra storage
bcs 2f bcs 2f
move.l (sp)+,(.limhp) move.l (sp)+,(.limhp)
1: 1: