瀏覽代碼

conversion to new assembler format

ceriel 37 年之前
父節點
當前提交
d2014ff946

+ 6 - 1
mach/ns/libem/aar.s

@@ -1,6 +1,11 @@
 .define .aar
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .aar:
 	movd 8(sp), r7

+ 6 - 1
mach/ns/libem/cff.s

@@ -1,6 +1,11 @@
 .define .cff
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .cff :	cmpd 4(sp), 8(sp)
 	beq 1f

+ 6 - 1
mach/ns/libem/cfi.s

@@ -1,6 +1,11 @@
 .define .cfi
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .cfi:	cmpd 4, 8(sp)
 	beq 4f

+ 6 - 1
mach/ns/libem/cif.s

@@ -1,6 +1,11 @@
 .define .cif
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .cif :	cmpd 4, 4(sp)
 	beq 4f

+ 6 - 1
mach/ns/libem/cii.s

@@ -1,6 +1,11 @@
 .define	.cii
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 !r7 will save return addres
 .cii:	

+ 6 - 1
mach/ns/libem/cms.s

@@ -1,6 +1,11 @@
 .define	.cms
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .cms:	movd tos, r7		!return addres
 	addr 4(sp), r1

+ 6 - 1
mach/ns/libem/cmu.s

@@ -1,6 +1,11 @@
 .define	.cmu
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .cmu:	movd tos, r7		!return addres
 	addr 4(sp), r1

+ 6 - 1
mach/ns/libem/csa.s

@@ -1,6 +1,11 @@
 .define	.csa
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 !r0 contains index
 !r1 contains pointer to csa descriptor

+ 6 - 1
mach/ns/libem/csb.s

@@ -1,6 +1,11 @@
 .define	.csb
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 !r0 contains index
 !r1 contains pointer to csb descriptor

+ 6 - 1
mach/ns/libem/dup.s

@@ -1,6 +1,11 @@
 .define	.dup
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 !r2 will save return addres
 .dup:

+ 6 - 1
mach/ns/libem/dvu.s

@@ -1,6 +1,11 @@
 .define	.dvu
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .dvu:	
 	enter[r1,r2],0

+ 8 - 3
mach/ns/libem/end.s

@@ -1,15 +1,20 @@
 .define	endtext,enddata,endbss
 .define _end, _etext, _edata
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 endtext:
 _etext:
 	.align	4
-	.data
+	.sect .data
 enddata:
 _edata:
 	.align	4
-	.bss
+	.sect .bss
 	.align	4
 endbss:
 _end:

+ 6 - 1
mach/ns/libem/exg.s

@@ -1,6 +1,11 @@
 .define	.exg
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .exg:
 	save [r2,r3]

+ 6 - 1
mach/ns/libem/gto.s

@@ -1,6 +1,11 @@
 .define	.gto
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 !r0 contains descriptor addres
 .gto:	

+ 6 - 1
mach/ns/libem/lar.s

@@ -1,6 +1,11 @@
 .define	.lar
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .lar:
 	movd tos, r2

+ 6 - 1
mach/ns/libem/los.s

@@ -1,6 +1,11 @@
 .define	.los
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .los:
 	movd tos, r7

+ 7 - 2
mach/ns/libem/mon.s

@@ -1,6 +1,11 @@
 .define .mon
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .mon:	
 	cmpd 1,4(sp)
@@ -47,7 +52,7 @@
 5:	movd 0, 16(sp)
 	ret 12
 
-.data
+.sect .data
 .add1:	.asciz "monitor call "
 .add2:	.asciz " not implemented\n"
 .align

+ 6 - 1
mach/ns/libem/print.s

@@ -1,6 +1,11 @@
 .define	.print
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .print:
 	save[r0,r1,r2]

+ 6 - 1
mach/ns/libem/prnl.s

@@ -1,6 +1,11 @@
 .define	.prnl
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .prnl:	movb "\n", tos
 	jsr @.putchar

+ 6 - 1
mach/ns/libem/prstr.s

@@ -1,6 +1,11 @@
 .define	.prstr
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 !het adres van de af te drukken string staat op de stack.
 .prstr:

+ 6 - 1
mach/ns/libem/putchar.s

@@ -1,6 +1,11 @@
 .define	.putchar
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .putchar:
 	save [r0, r1, r2, r3]

+ 6 - 1
mach/ns/libem/rck.s

@@ -1,6 +1,11 @@
 .define	.rck
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .rck:	
 	cmpd 0(4(sp)), 8(sp)

+ 6 - 1
mach/ns/libem/rmu.s

@@ -1,6 +1,11 @@
 .define .rmu
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .rmu:
 	enter[r2],0

+ 6 - 1
mach/ns/libem/sar.s

@@ -1,6 +1,11 @@
 .define	.sar
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .sar:
 	movd tos, r2

+ 6 - 1
mach/ns/libem/sts.s

@@ -1,6 +1,11 @@
 .define	.sts
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .sts:
 	movd tos, r7

+ 6 - 1
mach/ns/libem/trp.s

@@ -1,6 +1,11 @@
 .define .trp
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
-	.text
+	.sect .text
 
 .trp:	
 	save [r0, r1]

+ 6 - 1
mach/ns/libsys/stty.s

@@ -1,6 +1,11 @@
 .define _stty
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _stty
-.text
+.sect .text
 _stty:
 enter[], 0
 movd 12(fp),tos

+ 6 - 1
mach/ns/libsys/sync.s

@@ -1,6 +1,11 @@
 .define _sync
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _sync
-.text
+.sect .text
 _sync:
 enter[], 0
 movd 36,tos

+ 6 - 1
mach/ns/libsys/tell.s

@@ -1,6 +1,11 @@
 .define _tell
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _tell
-.text
+.sect .text
 _tell:
 enter[], 0
 movd 1,tos

+ 6 - 1
mach/ns/libsys/time.s

@@ -1,6 +1,11 @@
 .define _time
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _time
-.text
+.sect .text
 _time:
 enter[], 12
 addr -12(fp),tos

+ 6 - 1
mach/ns/libsys/times.s

@@ -1,6 +1,11 @@
 .define _times
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _times
-.text
+.sect .text
 _times:
 enter[], 0
 movd 8(fp),tos

+ 6 - 1
mach/ns/libsys/umask.s

@@ -1,6 +1,11 @@
 .define _umask
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _umask
-.text
+.sect .text
 _umask:
 enter[], 0
 movd 8(fp),tos

+ 6 - 1
mach/ns/libsys/umount.s

@@ -1,6 +1,11 @@
 .define _umount
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _umount
-.text
+.sect .text
 _umount:
 enter[], 0
 movd 8(fp),tos

+ 6 - 1
mach/ns/libsys/unlink.s

@@ -1,6 +1,11 @@
 .define _unlink
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _unlink
-.text
+.sect .text
 _unlink:
 enter[], 0
 movd 8(fp),tos

+ 6 - 1
mach/ns/libsys/utime.s

@@ -1,6 +1,11 @@
 .define _utime
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _utime
-.text
+.sect .text
 _utime:
 enter[], 0
 movd 12(fp),tos

+ 6 - 1
mach/ns/libsys/wait.s

@@ -1,6 +1,11 @@
 .define _wait
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _wait
-.text
+.sect .text
 _wait:
 enter[], 0
 movd 7,tos

+ 6 - 1
mach/ns/libsys/write.s

@@ -1,6 +1,11 @@
 .define _write
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .extern _write
-.text
+.sect .text
 _write:
 enter[], 0
 save [r0,r1,r2,r3]