-install:
- ../../install head_em
- ../../install tail_mon
+# $Header$
+MACH=pmds
+all: libmon_o.a head_em.o
-cmp:
- -../../compare head_em
- -../../compare tail_mon
+install: all
+ ../../install head_em.o head_em
+ ../../install libmon_o.a tail_mon
-clean :
+
+cmp: all
+ -../../compare head_em.o head_em
+ -../../compare libmon_o.a tail_mon
+
+libmon_o.a: libmon_s.a
+ ASAR=aal ; export ASAR ;\
+ march . libmon_o.a
+
+head_em.o: head_em.s
+ $(MACH) -I../../../h -c head_em.s
+
+clean:
+ rm -f *.o libmon_o.a
opr :
- make pr | opr
+ make pr | opr
pr:
- @pr `pwd`/head_em
- @arch pv tail_mon | pr -h `pwd`/tail_mon
+ @pr `pwd`/head_em.s
+ @arch pv libmon_s.a | pr -h `pwd`/libmon_s.a
.define CERASE,CKILL,CSTOP,CSTART
.define .lino,.filn
-
.define F_DUM,EXIT
-
.define begtext,begdata,begbss
.define EARRAY,ERANGE,ESET,EIDIVZ,EHEAP,EILLINS,ECASE
.define hol0,.reghp,.limhp,.trpim,.trppc
.define LINO_AD,FILN_AD
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+
+
CERASE = 010
EILLINS = 18
ECASE = 20
- .text
+ .sect .text
begtext:
add.l #2,sp !convert argc from 4-byte to 2-byte
pea endbss
add #010,sp
EXIT:
- .data
+ .sect .data
begdata:
hol0:
.lino:
- .short 0,0 ! lino
+ .data2 0,0 ! lino
.filn:
- .long 0 ! filn
+ .data4 0 ! filn
.reghp:
- .long endbss
+ .data4 endbss
.limhp:
- .long endbss
+ .data4 endbss
.trppc:
- .long 0
+ .data4 0
.trpim:
- .short 0
+ .data2 0
- .bss
+ .sect .bss
begbss: