Browse Source

New installation mechanism

ceriel 33 years ago
parent
commit
a3a4d929ca

+ 4 - 7
mach/i80/.distr

@@ -1,11 +1,8 @@
 Action
 as
-cg
+ncg
 dl
-libbc
-libcc
 libem
-libpc
-libsys
-liboc
-libm2
+libend
+libmon
+mach_params

+ 4 - 16
mach/i80/Action

@@ -2,29 +2,17 @@ name "Intel 8080 assembler"
 dir as
 end
 name "Intel 8080 code generator"
-dir cg
+dir ncg
 end
 name "Intel 8080 download programs"
 dir dl
 end
-name "Intel 8080 Basic library"
-dir libbc
-end
-name "Intel 8080 Occam library"
-dir liboc
-end
-name "Intel 8080 C libraries"
-dir libcc
-end
 name "Intel 8080 EM library"
 dir libem
 end
-name "Intel 8080 Pascal library"
-dir libpc
+name "Intel 8080 etext,edata,end library"
+dir libend
 end
 name "Intel 8080 System library"
-dir libsys
-end
-name "Intel 8080 Modula-2 library"
-dir libm2
+dir libmon
 end

+ 0 - 3
mach/i80/libem/.distr

@@ -1,5 +1,2 @@
 LIST
-Makefile
-compmodule
-end.s
 libem_s.a

+ 2 - 0
mach/i80/libend/.distr

@@ -0,0 +1,2 @@
+LIST
+end_s.a

+ 5 - 0
mach/i80/libend/LIST

@@ -0,0 +1,5 @@
+end_s.a
+edata.s
+em_end.s
+end.s
+etext.s

+ 7 - 0
mach/i80/libend/edata.s

@@ -0,0 +1,7 @@
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.define	_edata
+.sect .data
+_edata:

+ 14 - 0
mach/i80/libend/em_end.s

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

+ 7 - 0
mach/i80/libend/end.s

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

+ 7 - 0
mach/i80/libend/etext.s

@@ -0,0 +1,7 @@
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.define	_etext
+.sect .text
+_etext:

+ 1 - 3
mach/i80/libmon/.distr

@@ -1,7 +1,5 @@
 LIST
-Makefile
-compmodule
 README
-libsys_s.a
+libmon_s.a
 char.nas.s
 head_em.s

+ 1 - 1
mach/i80/libmon/LIST

@@ -1,4 +1,4 @@
-libsys_s.a
+libmon_s.a
 mon.s
 trp.s
 inn2.s

+ 2 - 2
mach/i80/libmon/README

@@ -2,5 +2,5 @@ This library should contain one of the files char.her.s, that has routines
 getchar and putchar for the MC-CPM, and char.nas.s, that
 has the same routines for the Nascom.
 The default is char.her.s.
-The file char.nas.s is presented in this directory and not included
-in the libarary.
+The file char.nas.s resides in this directory and is not included
+in the library.

+ 4 - 0
mach/i80/mach_params

@@ -0,0 +1,4 @@
+MACH=i80
+SUF=o
+ASAR=aal
+RANLIB=:

+ 2 - 5
mach/i86/.distr

@@ -1,12 +1,9 @@
 Action
 cv
-libbc
-libcc
 libem
-libpc
+libend
 libsys
 as
-liboc
 libfp
 ncg
-libm2
+mach_params

+ 5 - 17
mach/i86/Action

@@ -4,30 +4,18 @@ end
 name "Intel 8086 backend"
 dir ncg
 end
-name "Intel 8086 C libraries"
-dir libcc
-end
 name "Intel 8086 EM library"
 dir libem
 end
-name "Intel 8086 Pascal library"
-dir libpc
+name "Intel 8086 etext,edata,end library"
+dir libend
+end
+name "Intel 8086 floating point library"
+dir libfp
 end
 name "Intel 8086 PC/IX systemcall library"
 dir libsys
 end
-name "Intel 8086 Basic library"
-dir libbc
-end
-name "Intel 8086 Occam library"
-dir liboc
-end
 name "Intel 8086 conversion program from ack.out --> PC/IX a.out"
 dir cv
 end
-name "Intel 8086 floating point library"
-dir libfp
-end
-name "Intel 8086 Modula-2 library"
-dir libm2
-end

+ 0 - 3
mach/i86/libem/.distr

@@ -1,5 +1,2 @@
 LIST
-Makefile
-compmodule
-end.s
 libem_s.a

+ 1 - 1
mach/i86/libem/print.s

@@ -39,7 +39,7 @@ printc:
 	push	ax
 	push	bx
 	push	ax
-	call	_write
+	call	__write
 	pop	bx
 	pop	bx
 	pop	bx

+ 1 - 1
mach/i86/libem/strhp.s

@@ -13,7 +13,7 @@
 	and	ax,~0777
 	push	bx
 	push	ax
-	call	_brk
+	call	__brk
 	pop	cx
 	pop	bx
 	cmp	ax,-1

+ 1 - 1
mach/i86/libem/trp.s

@@ -18,4 +18,4 @@
 	call    .stop
 
 .stop:
-	int     3
+	jmp	__exit

+ 2 - 0
mach/i86/libend/.distr

@@ -0,0 +1,2 @@
+LIST
+end_s.a

+ 5 - 0
mach/i86/libend/LIST

@@ -0,0 +1,5 @@
+end_s.a
+edata.s
+em_end.s
+end.s
+etext.s

+ 7 - 0
mach/i86/libend/edata.s

@@ -0,0 +1,7 @@
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.define	_edata
+.sect .data
+_edata:

+ 14 - 0
mach/i86/libend/em_end.s

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

+ 7 - 0
mach/i86/libend/end.s

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

+ 7 - 0
mach/i86/libend/etext.s

@@ -0,0 +1,7 @@
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.define	_etext
+.sect .text
+_etext:

+ 0 - 1
mach/i86/libfp/.distr

@@ -1,2 +1 @@
-Makefile
 byte_order.h

+ 0 - 2
mach/i86/libsys/.distr

@@ -1,5 +1,3 @@
 LIST
-Makefile
-compmodule
 libmon_s.a
 head_em.s

+ 4 - 0
mach/i86/mach_params

@@ -0,0 +1,4 @@
+MACH=i86
+SUF=o
+ASAR=aal
+RANLIB=: