From d2014ff9464ce3e7df53cb4fbfbe3fee9b3f6c0c Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 16 Jan 1987 16:49:46 +0000 Subject: [PATCH] conversion to new assembler format --- mach/ns/libem/aar.s | 7 ++++++- mach/ns/libem/cff.s | 7 ++++++- mach/ns/libem/cfi.s | 7 ++++++- mach/ns/libem/cif.s | 7 ++++++- mach/ns/libem/cii.s | 7 ++++++- mach/ns/libem/cms.s | 7 ++++++- mach/ns/libem/cmu.s | 7 ++++++- mach/ns/libem/csa.s | 7 ++++++- mach/ns/libem/csb.s | 7 ++++++- mach/ns/libem/dup.s | 7 ++++++- mach/ns/libem/dvu.s | 7 ++++++- mach/ns/libem/end.s | 11 ++++++++--- mach/ns/libem/exg.s | 7 ++++++- mach/ns/libem/gto.s | 7 ++++++- mach/ns/libem/lar.s | 7 ++++++- mach/ns/libem/los.s | 7 ++++++- mach/ns/libem/mon.s | 9 +++++++-- mach/ns/libem/print.s | 7 ++++++- mach/ns/libem/prnl.s | 7 ++++++- mach/ns/libem/prstr.s | 7 ++++++- mach/ns/libem/putchar.s | 7 ++++++- mach/ns/libem/rck.s | 7 ++++++- mach/ns/libem/rmu.s | 7 ++++++- mach/ns/libem/sar.s | 7 ++++++- mach/ns/libem/sts.s | 7 ++++++- mach/ns/libem/trp.s | 7 ++++++- mach/ns/libsys/stty.s | 7 ++++++- mach/ns/libsys/sync.s | 7 ++++++- mach/ns/libsys/tell.s | 7 ++++++- mach/ns/libsys/time.s | 7 ++++++- mach/ns/libsys/times.s | 7 ++++++- mach/ns/libsys/umask.s | 7 ++++++- mach/ns/libsys/umount.s | 7 ++++++- mach/ns/libsys/unlink.s | 7 ++++++- mach/ns/libsys/utime.s | 7 ++++++- mach/ns/libsys/wait.s | 7 ++++++- mach/ns/libsys/write.s | 7 ++++++- 37 files changed, 225 insertions(+), 40 deletions(-) diff --git a/mach/ns/libem/aar.s b/mach/ns/libem/aar.s index 984c57f04..6dd8cac53 100644 --- a/mach/ns/libem/aar.s +++ b/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 diff --git a/mach/ns/libem/cff.s b/mach/ns/libem/cff.s index f1cae1da9..d797448a4 100644 --- a/mach/ns/libem/cff.s +++ b/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 diff --git a/mach/ns/libem/cfi.s b/mach/ns/libem/cfi.s index c05456269..877aed898 100644 --- a/mach/ns/libem/cfi.s +++ b/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 diff --git a/mach/ns/libem/cif.s b/mach/ns/libem/cif.s index 820981843..61bb6da1a 100644 --- a/mach/ns/libem/cif.s +++ b/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 diff --git a/mach/ns/libem/cii.s b/mach/ns/libem/cii.s index d25b5fa25..13980503c 100644 --- a/mach/ns/libem/cii.s +++ b/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: diff --git a/mach/ns/libem/cms.s b/mach/ns/libem/cms.s index e8b0d501b..3b6d6ea83 100644 --- a/mach/ns/libem/cms.s +++ b/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 diff --git a/mach/ns/libem/cmu.s b/mach/ns/libem/cmu.s index 66d381c41..c8c1aad7e 100644 --- a/mach/ns/libem/cmu.s +++ b/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 diff --git a/mach/ns/libem/csa.s b/mach/ns/libem/csa.s index 5f16e4b00..0b4f492fa 100644 --- a/mach/ns/libem/csa.s +++ b/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 diff --git a/mach/ns/libem/csb.s b/mach/ns/libem/csb.s index 15bf815e9..56ed67558 100644 --- a/mach/ns/libem/csb.s +++ b/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 diff --git a/mach/ns/libem/dup.s b/mach/ns/libem/dup.s index 9252019df..0d903ed65 100644 --- a/mach/ns/libem/dup.s +++ b/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: diff --git a/mach/ns/libem/dvu.s b/mach/ns/libem/dvu.s index 34b8ba401..0bfaec786 100644 --- a/mach/ns/libem/dvu.s +++ b/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 diff --git a/mach/ns/libem/end.s b/mach/ns/libem/end.s index 9225bd8c9..e8d71d802 100644 --- a/mach/ns/libem/end.s +++ b/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: diff --git a/mach/ns/libem/exg.s b/mach/ns/libem/exg.s index 47bc38e33..123b4fb33 100644 --- a/mach/ns/libem/exg.s +++ b/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] diff --git a/mach/ns/libem/gto.s b/mach/ns/libem/gto.s index 8d0199901..dbd2d932c 100644 --- a/mach/ns/libem/gto.s +++ b/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: diff --git a/mach/ns/libem/lar.s b/mach/ns/libem/lar.s index 8de2d964e..cf5a27e01 100644 --- a/mach/ns/libem/lar.s +++ b/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 diff --git a/mach/ns/libem/los.s b/mach/ns/libem/los.s index daf36cfb6..fc500827f 100644 --- a/mach/ns/libem/los.s +++ b/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 diff --git a/mach/ns/libem/mon.s b/mach/ns/libem/mon.s index 57ef54a58..31773656f 100644 --- a/mach/ns/libem/mon.s +++ b/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 diff --git a/mach/ns/libem/print.s b/mach/ns/libem/print.s index fa44c1ffe..e93500754 100644 --- a/mach/ns/libem/print.s +++ b/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] diff --git a/mach/ns/libem/prnl.s b/mach/ns/libem/prnl.s index 621304848..fd0f0e971 100644 --- a/mach/ns/libem/prnl.s +++ b/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 diff --git a/mach/ns/libem/prstr.s b/mach/ns/libem/prstr.s index 8d7a61aa4..ce0df8543 100644 --- a/mach/ns/libem/prstr.s +++ b/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: diff --git a/mach/ns/libem/putchar.s b/mach/ns/libem/putchar.s index d5fe98f2e..6a4856b77 100644 --- a/mach/ns/libem/putchar.s +++ b/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] diff --git a/mach/ns/libem/rck.s b/mach/ns/libem/rck.s index 8a22761a8..f89a48828 100644 --- a/mach/ns/libem/rck.s +++ b/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) diff --git a/mach/ns/libem/rmu.s b/mach/ns/libem/rmu.s index 670a606ff..0bf53d196 100644 --- a/mach/ns/libem/rmu.s +++ b/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 diff --git a/mach/ns/libem/sar.s b/mach/ns/libem/sar.s index fe94845b4..3b3ab4ded 100644 --- a/mach/ns/libem/sar.s +++ b/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 diff --git a/mach/ns/libem/sts.s b/mach/ns/libem/sts.s index b95f0ecd4..84b4145ee 100644 --- a/mach/ns/libem/sts.s +++ b/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 diff --git a/mach/ns/libem/trp.s b/mach/ns/libem/trp.s index cea74e4e7..274938d60 100644 --- a/mach/ns/libem/trp.s +++ b/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] diff --git a/mach/ns/libsys/stty.s b/mach/ns/libsys/stty.s index 2a3fcc444..57266bac0 100644 --- a/mach/ns/libsys/stty.s +++ b/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 diff --git a/mach/ns/libsys/sync.s b/mach/ns/libsys/sync.s index e0197ac6c..b4d528bdb 100644 --- a/mach/ns/libsys/sync.s +++ b/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 diff --git a/mach/ns/libsys/tell.s b/mach/ns/libsys/tell.s index 4623614b0..6456247c2 100644 --- a/mach/ns/libsys/tell.s +++ b/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 diff --git a/mach/ns/libsys/time.s b/mach/ns/libsys/time.s index 9453664cb..c7b5b6e0e 100644 --- a/mach/ns/libsys/time.s +++ b/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 diff --git a/mach/ns/libsys/times.s b/mach/ns/libsys/times.s index d7a267127..3f55a40ce 100644 --- a/mach/ns/libsys/times.s +++ b/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 diff --git a/mach/ns/libsys/umask.s b/mach/ns/libsys/umask.s index 4f2f63cff..7696dc7c0 100644 --- a/mach/ns/libsys/umask.s +++ b/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 diff --git a/mach/ns/libsys/umount.s b/mach/ns/libsys/umount.s index f1259bf0b..430ec986a 100644 --- a/mach/ns/libsys/umount.s +++ b/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 diff --git a/mach/ns/libsys/unlink.s b/mach/ns/libsys/unlink.s index d5617c1cc..0cdade02b 100644 --- a/mach/ns/libsys/unlink.s +++ b/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 diff --git a/mach/ns/libsys/utime.s b/mach/ns/libsys/utime.s index 0c98b7895..8ce393076 100644 --- a/mach/ns/libsys/utime.s +++ b/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 diff --git a/mach/ns/libsys/wait.s b/mach/ns/libsys/wait.s index b63a2586f..dd8eae054 100644 --- a/mach/ns/libsys/wait.s +++ b/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 diff --git a/mach/ns/libsys/write.s b/mach/ns/libsys/write.s index ab89b5287..43866f271 100644 --- a/mach/ns/libsys/write.s +++ b/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] -- 2.34.1