changeset 410:9ed77eeace37

All floppy disk descriptor modules now made with dx.asm and different targets specified in Makefile. Changed $07 to HW.Page in several descriptors
author boisy
date Wed, 04 Sep 2002 16:47:13 +0000
parents f26f6b021aaf
children e5bf27e3856b
files level2/modules/d0_40d.asm level2/modules/d0_80d.asm level2/modules/d1_35s.asm level2/modules/d1_40d.asm level2/modules/d1_80d.asm level2/modules/d2_35s.asm level2/modules/d2_40d.asm level2/modules/d2_80d.asm level2/modules/ddd0_35s.asm level2/modules/ddd0_40d.asm level2/modules/ddd0_80d.asm level2/modules/dx.asm level2/modules/makefile level2/modules/t2_dacia.asm level2/modules/t2_s16550.asm level2/modules/t2_sacia.asm level2/modules/t3_dacia.asm level2/modules/t3_sacia.asm level2/modules/term_win40.asm level2/modules/term_win80.asm level2/modules/w.asm level2/modules/w1.asm level2/modules/w2.asm level2/modules/w3.asm level2/modules/w4.asm level2/modules/w5.asm level2/modules/w6.asm level2/modules/w7.asm
diffstat 28 files changed, 120 insertions(+), 507 deletions(-) [+]
line wrap: on
line diff
--- a/level2/modules/d0_40d.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-         nam   D0
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   0
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.MFM    media density:0=single,1=double
-         fdb   40         number of cylinders (tracks)
-         fcb   2          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcc   /D/
-         fcb   176+dnum
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- a/level2/modules/d0_80d.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-         nam   D0
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   0
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.DTD+DNS.MFM    media density:0=single,1=double
-         fdb   80         number of cylinders (tracks)
-         fcb   2          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcc   /D/
-         fcb   176+dnum
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- a/level2/modules/d1_35s.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-         nam   D1
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   1
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.MFM    media density:0=single,1=double
-         fdb   35         number of cylinders (tracks)
-         fcb   1          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcc   /D/
-         fcb   176+dnum
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- a/level2/modules/d1_40d.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-         nam   D1
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   1
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.MFM    media density:0=single,1=double
-         fdb   40         number of cylinders (tracks)
-         fcb   2          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcc   /D/
-         fcb   176+dnum
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- a/level2/modules/d1_80d.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-         nam   D1
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   1
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.DTD+DNS.MFM    media density:0=single,1=double
-         fdb   80         number of cylinders (tracks)
-         fcb   2          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcc   /D/
-         fcb   176+dnum
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- a/level2/modules/d2_35s.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-         nam   D2
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   2
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.MFM    media density:0=single,1=double
-         fdb   35         number of cylinders (tracks)
-         fcb   1          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcc   /D/
-         fcb   176+dnum
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- a/level2/modules/d2_40d.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-         nam   D2
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   2
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.MFM    media density:0=single,1=double
-         fdb   40         number of cylinders (tracks)
-         fcb   2          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcc   /D/
-         fcb   176+dnum
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- a/level2/modules/d2_80d.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-         nam   D2
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   2
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.DTD+DNS.MFM    media density:0=single,1=double
-         fdb   80         number of cylinders (tracks)
-         fcb   2          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcc   /D/
-         fcb   176+dnum
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- a/level2/modules/ddd0_35s.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-         nam   DD
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   0
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.MFM    media density:0=single,1=double
-         fdb   35         number of cylinders (tracks)
-         fcb   1          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcs   /DD/
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- a/level2/modules/ddd0_40d.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-         nam   DD
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   0
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.MFM    media density:0=single,1=double
-         fdb   40         number of cylinders (tracks)
-         fcb   2          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcs   /DD/
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- a/level2/modules/ddd0_80d.asm	Wed Sep 04 14:16:36 2002 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-         nam   DD
-         ttl   CC3Disk device descriptor
-
-* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
-
-         ifp1  
-         use   defsfile
-         use   rbfdefs
-         endc  
-
-dnum     equ   0
-
-tylg     set   Devic+Objct
-atrv     set   ReEnt+rev
-rev      set   $01
-
-         mod   eom,name,tylg,atrv,mgrnam,drvnam
-
-         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
-         fcb   $07        extended controller address
-         fdb   $FF40      physical controller address
-         fcb   initsize-*-1 initilization table size
-         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
-         fcb   dnum       drive number
-         fcb   STP.6ms    step rate
-         fcb   TYP.CCF+TYP.5 drive device type
-         fcb   DNS.DTD+DNS.MFM    media density:0=single,1=double
-         fdb   80         number of cylinders (tracks)
-         fcb   2          number of sides
-         fcb   1          verify disk writes:0=on
-         fdb   18         # of sectors per track
-         fdb   18         # of sectors per track (track 0)
-         fcb   3          sector interleave factor
-         fcb   8          minimum size of sector allocation
-initsize equ   *
-
-name     fcs   /DD/
-mgrnam   fcs   /RBF/
-drvnam   fcs   /CC3Disk/
-
-         emod  
-eom      equ   *
-         end   
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/level2/modules/dx.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -0,0 +1,59 @@
+         nam   DX
+         ttl   CC3Disk device descriptor
+
+* Disassembled 98/08/23 17:09:41 by Disasm v1.6 (C) 1988 by RML
+
+         ifp1  
+         use   defsfile
+         use   rbfdefs
+         endc  
+
+tylg     set   Devic+Objct
+atrv     set   ReEnt+rev
+rev      set   $01
+
+DNum     set   0
+Type     set   TYP.CCF+TYP.5
+Density  set   DNS.MFM
+Step     set   STP.6ms
+Cyls     set   35
+Sides    set   1
+Verify   set   1
+SectTrk  set   18
+SectTrk0 set   18
+Interlv  set   3
+SAS      set   8
+
+         mod   eom,name,tylg,atrv,mgrnam,drvnam
+
+         fcb   DIR.!ISIZ.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte
+         fcb   HW.Page    extended controller address
+         fdb   $FF40      physical controller address
+         fcb   initsize-*-1 initilization table size
+         fcb   DT.RBF     device type:0=scf,1=rbf,2=pipe,3=scf
+         fcb   dnum       drive number
+         fcb   Step       step rate
+         fcb   Type       drive device type
+         fcb   Density    media density:0=single,1=double
+         fdb   Cyls       number of cylinders (tracks)
+         fcb   Sides      number of sides
+         fcb   Verify     verify disk writes:0=on
+         fdb   SectTrk    # of sectors per track
+         fdb   SectTrk0   # of sectors per track (track 0)
+         fcb   Interlv    sector interleave factor
+         fcb   SAS        minimum size of sector allocation
+initsize equ   *
+
+         ifne  DD
+name     fcs   /DD/
+         else
+name     fcc   /D/
+         fcb   176+dnum
+         endc
+mgrnam   fcs   /RBF/
+drvnam   fcs   /CC3Disk/
+
+         emod  
+eom      equ   *
+         end   
+
--- a/level2/modules/makefile	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/makefile	Wed Sep 04 16:47:13 2002 +0000
@@ -51,6 +51,52 @@
 
 
 # Special cases here
+SSDD35		= -aCyls=35 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \
+		-aInterlv=3 -aSAS=8
+DSDD40		= -aCyls=40 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \
+		-aInterlv=3 -aSAS=8
+DSDD80		= -aCyls=80 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \
+		-aInterlv=3 -aSAS=8
+
+ddd0_35s.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 -aDD=1
+
+d0_35s.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0
+
+d1_35s.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=1
+
+d2_35s.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=2
+
+d3_35s.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=3
+
+ddd0_40d.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aDD=1
+
+d0_40d.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0
+
+d1_40d.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=1
+
+d2_40d.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=2
+
+ddd0_80d.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aDD=1
+
+d0_80d.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0
+
+d1_80d.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=1
+
+d2_80d.dd: dx.asm
+	$(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2
+
 cc3go_rom: cc3go.asm
 	$(AS) -aROM=1 $(AFLAGS) $< $(ASOUT)$@
 	
--- a/level2/modules/t2_dacia.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/t2_dacia.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -14,7 +14,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   $FF68      physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   DT.SCF     device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/t2_s16550.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/t2_s16550.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -14,7 +14,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   $FF68      physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   DT.SCF     device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/t2_sacia.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/t2_sacia.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -14,7 +14,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   $FF68      physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   DT.SCF     device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/t3_dacia.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/t3_dacia.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -14,7 +14,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   $FF6C      physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   DT.SCF     device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/t3_sacia.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/t3_sacia.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -14,7 +14,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   $FF6C      physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   DT.SCF     device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/term_win40.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/term_win40.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -25,7 +25,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   A.TermW    physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   $00        device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/term_win80.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/term_win80.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -25,7 +25,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   A.TermW    physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   $00        device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/w.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/w.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -25,7 +25,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   A.W        physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   $00        device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/w1.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/w1.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -25,7 +25,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   A.W1       physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   $00        device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/w2.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/w2.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -25,7 +25,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   A.W2       physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   $00        device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/w3.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/w3.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -25,7 +25,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   A.W3       physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   $00        device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/w4.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/w4.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -25,7 +25,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   A.W4       physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   $00        device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/w5.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/w5.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -25,7 +25,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   A.W5       physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   $00        device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/w6.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/w6.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -25,7 +25,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   A.W6       physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   $00        device type:0=scf,1=rbf,2=pipe,3=scf
--- a/level2/modules/w7.asm	Wed Sep 04 14:16:36 2002 +0000
+++ b/level2/modules/w7.asm	Wed Sep 04 16:47:13 2002 +0000
@@ -25,7 +25,7 @@
          mod   eom,name,tylg,atrv,mgrnam,drvnam
 
          fcb   READ.+WRITE. mode byte
-         fcb   $07        extended controller address
+         fcb   HW.Page    extended controller address
          fdb   A.W7       physical controller address
          fcb   initsize-*-1 initilization table size
          fcb   $00        device type:0=scf,1=rbf,2=pipe,3=scf