new version for .o
authorceriel <none@none>
Mon, 2 Feb 1987 13:30:20 +0000 (13:30 +0000)
committerceriel <none@none>
Mon, 2 Feb 1987 13:30:20 +0000 (13:30 +0000)
44 files changed:
mach/z80/libem/LIST
mach/z80/libem/Makefile
mach/z80/libem/aar.s
mach/z80/libem/aar2.s
mach/z80/libem/aaru.s
mach/z80/libem/and.s
mach/z80/libem/cii.s
mach/z80/libem/cms.s
mach/z80/libem/cmu.s
mach/z80/libem/cmu4.s
mach/z80/libem/csa.s
mach/z80/libem/csb.s
mach/z80/libem/dvi2.s
mach/z80/libem/dvi4.s
mach/z80/libem/dvu2.s
mach/z80/libem/dvu4.s
mach/z80/libem/end.s
mach/z80/libem/exg.s
mach/z80/libem/gto.s
mach/z80/libem/hulp.s
mach/z80/libem/inn.s
mach/z80/libem/ior.s
mach/z80/libem/lar.s
mach/z80/libem/lar2.s
mach/z80/libem/laru.s
mach/z80/libem/los.s
mach/z80/libem/mli2.s
mach/z80/libem/mli4.s
mach/z80/libem/nop.s
mach/z80/libem/outdec.s
mach/z80/libem/pstrng.s
mach/z80/libem/rck.s
mach/z80/libem/rmi2.s
mach/z80/libem/sar.s
mach/z80/libem/sar2.s
mach/z80/libem/saru.s
mach/z80/libem/sdf.s
mach/z80/libem/sdl.s
mach/z80/libem/set.s
mach/z80/libem/str.s
mach/z80/libem/sts.s
mach/z80/libem/trp.s
mach/z80/libem/unim.s
mach/z80/libem/xor.s

index 67c8296..b61d8d8 100644 (file)
@@ -1,4 +1,4 @@
-tail_em.a
+libem_s.a
 aaru.s
 aar.s
 aar2.s
index f1db57d..3529a29 100644 (file)
@@ -1,17 +1,29 @@
 # $Header$
-install:
-       ../../install tail_em.a tail_em
-       ../../install tail.s end_em
+MACH=z80
+all:           libem_o.a end.o
 
-cmp:
-       -../../compare tail_em.a tail_em
-       -../../compare tail.s end_em
+install:       all
+               ../../install end.o end_em
+               ../../install libem_o.a tail_em
 
-clean :
+
+cmp:           all
+               -../../compare end.o end_em
+               -../../compare libem_o.a tail_em
+
+libem_o.a:     libem_s.a
+               ASAR=aal ; export ASAR ;\
+               march . libem_o.a
+
+end.o:         end.s
+               $(MACH) -I../../../h -c end.s
+
+clean:
+               rm -f *.o libem_o.a
 
 opr :
-       make pr | opr
+               make pr | opr
 
 pr:
-       @arch pv tail_em.a | pr -h `pwd`/tail_em.a
-       @pr `pwd`/tail.s
+               @pr `pwd`/end.s
+               @arch pv libem_s.a | pr -h `pwd`/libem_s.a
index ded49f5..09b0eb0 100644 (file)
@@ -1,4 +1,9 @@
 .define .aar
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 ! use .mli2
 
 ! 2-byte descriptor elements
index 149eefb..b7c3508 100644 (file)
@@ -1,4 +1,9 @@
 .define .aar2
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! special case aar: element size = 2 (statically known)
 ! parameters:
index 650931f..95f6ae4 100644 (file)
@@ -1,4 +1,9 @@
 .define .aaru
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! AAR NOT DEFINED
 
index dd02e8a..3aa04f0 100644 (file)
@@ -1,4 +1,9 @@
 .define .and
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! auxiliary size 'and'
 ! parameters:
index 2321874..d042d65 100644 (file)
@@ -1,4 +1,10 @@
 .define .cii
+.define .cuu
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! cii: convert integer to integer
 ! parameters:
 
 
 
-.define .cuu
 
 ! cuu: convert unsigned to unsigned
 ! parameters:
index 530f4fc..8f28ced 100644 (file)
@@ -1,4 +1,9 @@
 .define .cms
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! any size sets
 ! parameters:
index 738cb61..c0a4ac5 100644 (file)
@@ -1,4 +1,9 @@
 .define .cmu
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! parameters:
 !   hl   :  size (#bytes)
index 5f91c5d..8cc431c 100644 (file)
@@ -1,4 +1,9 @@
 .define .cmu4
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! 4 byte cmu and cmi routine
 ! parameters:
@@ -56,5 +61,5 @@
        inc hl
        ld sp,hl
        jp (ix)
-.data
-savesp: .word 0
+.sect .data
+savesp: .data2 0
index 3f114c8..ace728e 100644 (file)
@@ -1,4 +1,9 @@
 .define .csa
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! this is not a subroutine, but just a
 ! piece of code that computes the jump-
index 32bdab0..53aa41a 100644 (file)
@@ -1,4 +1,9 @@
 .define .csb
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! this is not a subroutine, but just a
 ! piece of code that computes the jump-
index 986ac48..2b24818 100644 (file)
@@ -1,4 +1,9 @@
 .define .dvi2
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! 16-bit signed division
 ! parameters:
index 145df91..d566560 100644 (file)
@@ -1,4 +1,9 @@
 .define .dvi4
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! 4-byte divide routine for z80
 ! parameters:
@@ -77,9 +82,9 @@
        push bc
        push de
        jp (ix)
-.data
-       .flag1: .byte 0
-       .flag2: .byte 0
-       retaddr:.word 0
-       .savebc: .word 0
-       .savede: .word 0
+.sect .data
+       .flag1: .data1 0
+       .flag2: .data1 0
+       retaddr:.data2 0
+       .savebc: .data2 0
+       .savede: .data2 0
index 06590f7..4512115 100644 (file)
@@ -1,4 +1,9 @@
 .define .dvu2
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! 16-bit divide
 ! parameters:
index eeecec4..d0e3ab8 100644 (file)
@@ -1,4 +1,9 @@
 .define .dvu4
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! 4-byte divide routine for z80
 ! parameters:
        ld hl,(.retaddr)
        jp (hl)         ! return
 
-.data
-.flag:         .byte 0
-.low:          .word 0
-.iysave:       .word 0
-.retaddr:      .word 0
-.result:       .word 0
+.sect .data
+.flag:         .data1 0
+.low:          .data2 0
+.iysave:       .data2 0
+.retaddr:      .data2 0
+.result:       .data2 0
index aead499..6b9ce41 100644 (file)
@@ -1,15 +1,17 @@
+.sect .text; .sect .rom; .sect .data; .sect .bss
 .define        endtext,enddata,endbss
 .define _end,_etext,_edata
 
-       .text
+        ! $Header$
+       .sect .text
 endtext:
 _etext:
        .align 2
-       .data
+       .sect .data
 enddata:
 _edata:
        .align 2
-       .bss
+.sect .endsect
 _end:
 endbss:
        .align 2
index d7dc3bd..149a1e5 100644 (file)
@@ -1,4 +1,9 @@
 .define .exg
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .exg:  
        pop ix
        pop de
index 230d6a9..97aaba8 100644 (file)
@@ -1,4 +1,9 @@
 .define .gto
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 .gto:
        ld e,(hl)
index 1f1ffaa..b287d2e 100644 (file)
@@ -1,3 +1,8 @@
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 loop = 100
 dvi4:
        xor a
@@ -57,6 +62,6 @@ dvi4:
        push hl
        push de
        jp (iy)
-.data
-       .flag1: .byte 0
-       .flag2: .byte 0
+.sect .data
+       .flag1: .data1 0
+       .flag2: .data1 0
index a6fed76..ddd4b1b 100644 (file)
@@ -1,4 +1,9 @@
 .define .inn
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 ! use .unimpld
 
 ! any size sets
index 6a6fded..4e5e188 100644 (file)
@@ -1,4 +1,9 @@
 .define .ior
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! auxiliary size 'ior'
 ! parameters:
index 105ebbf..dbed311 100644 (file)
@@ -1,4 +1,9 @@
 .define .lar
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 ! use .mli2
 
 ! 2-byte descriptor elements
index e4ce311..dcc487b 100644 (file)
@@ -1,4 +1,9 @@
 .define .lar2
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! special case lar: element size = 2 (statically known)
 ! parameters:
index 0ad563d..19c0df5 100644 (file)
@@ -1,4 +1,9 @@
 .define .laru
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! LAR NOT DEFINED
 
index 0799c7e..e472e21 100644 (file)
@@ -1,4 +1,9 @@
 .define .los
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 
 
index 28e7a9e..fc88738 100644 (file)
@@ -1,4 +1,9 @@
 .define .mli2
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! 16 bit multiply
 ! parameters:
index 0284310..3fbeb2b 100644 (file)
@@ -1,4 +1,9 @@
 .define .mli4
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! 32-bit multiply routine for z80
 ! parameters:
@@ -70,6 +75,6 @@
                        ! on stack!  put return address in hl
        push ix         ! least sign. 2 bytes of result
        jp (hl)         ! return
-.data
-.flag:  .byte 0
+.sect .data
+.flag:  .data1 0
 .mplier: .space 4
index 6a61101..016192f 100644 (file)
@@ -1,6 +1,11 @@
+.define .nop
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 
-.define .nop
 
 ! NOP
 ! changed into output routine to print linenumber
index 74f9698..5a03edf 100644 (file)
@@ -1,4 +1,9 @@
 .define outdec
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 ! output contents of HL as a sequence
 ! of decimal digits
 outdec:
@@ -47,7 +52,7 @@ convert:
        pop     bc
        ret
 table:
-       .short  10000
-       .short  1000
-       .short  100
-       .short  10
+       .data2  10000
+       .data2  1000
+       .data2  100
+       .data2  10
index f3e0885..d9ebc55 100644 (file)
@@ -1,6 +1,11 @@
+.define        pstrng
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 
-.define        pstrng
 ! print a string of characters to the console
 ! entry: DE points to string
 !       string terminator is 0x00
index c98e1ca..3831042 100644 (file)
@@ -1,4 +1,9 @@
 .define .rck
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 .rck:
        pop bc
        pop ix
index 16cf68b..c6b8d18 100644 (file)
@@ -1,4 +1,9 @@
 .define .rmi2
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! 16-bit signed remainder
 ! parameters:
index a89ecda..65aec58 100644 (file)
@@ -1,4 +1,9 @@
 .define .sar
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 ! use .mli2
 ! use .trp.z
 
index 9dbe81e..286738c 100644 (file)
@@ -1,4 +1,9 @@
 .define .sar2
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! special case sar: element size = 2 (statically known)
 ! parameters:
index b2784e4..1d53cc9 100644 (file)
@@ -1,4 +1,9 @@
 .define .saru
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! SAR NOT DEFINED
 
index 7a3caf1..89e81a4 100644 (file)
@@ -1,4 +1,9 @@
 .define .sdf
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! store double offsetted
 
index 643428c..2acfd85 100644 (file)
@@ -1,4 +1,9 @@
 .define .sdl
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! store double local at any offset
 ! parameters:
index 2e698f7..f2251af 100644 (file)
@@ -1,4 +1,9 @@
 .define .set
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 ! use .unimpld
 
 ! any size sets
index 4a4a2b1..70e97f5 100644 (file)
@@ -1,4 +1,9 @@
 .define .strhp
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 .strhp:
        pop ix
index 89f5cbb..db1cea3 100644 (file)
@@ -1,4 +1,9 @@
 .define .sts
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 ! use trp.z
 
 ! object size given by 2-byte integer on
index 07f8352..f153b8e 100644 (file)
@@ -1,4 +1,9 @@
 .define .trp.z
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! changed into output routine to print errornumber
 
index 53970f3..fa5e4c5 100644 (file)
@@ -1,4 +1,9 @@
 .define unimpld, e.mon, e.rck, .trp.z, .unimpld
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 .unimpld:
 unimpld:               ! used in dispatch table to
index ae88257..b9b12e0 100644 (file)
@@ -1,4 +1,9 @@
 .define .xor
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
 
 ! auxiliary size 'xor'
 ! parameters: