diff level1/modules/superdesc.asm @ 2730:6bd6e348665d

Working on cloned default branch, pulled 2012/11/03 user: gheskett@wdtv.com branch 'default' changed ChangeLog changed ReadMe changed defs/rbf.d changed defs/rbsuper.d changed defs/scsi.d changed level1/atari/cmds/fuji.asm changed level1/coco/modules/makefile changed level1/modules/boot_scsi.asm changed level1/modules/superdesc.asm changed level2/coco3/bootfiles/makefile changed level2/coco3/modules/makefile changed level2/coco3_6309/bootfiles/makefile changed level2/modules/joydrv_6551L.asm changed rules.mak
author gheskett@wdtv.com
date Sat, 10 Nov 2012 11:55:48 -0500
parents 17d43fd29ee2
children 28ed72477814
line wrap: on
line diff
--- a/level1/modules/superdesc.asm	Sun Jul 15 11:10:20 2012 -0500
+++ b/level1/modules/superdesc.asm	Sat Nov 10 11:55:48 2012 -0500
@@ -1,3 +1,4 @@
+	opt	w132	wide listing
 ********************************************************************
 * SuperDesc - Super Driver Device Descriptor Template
 *
@@ -47,17 +48,20 @@
 *
 *   0      2005/12/08  Boisy G. Pitre
 * Reserved two bits in IT.TYP for llscsi.
-
+*
+*   1      2012/11/06  Gene Heskett
+* passing config opts from makefile
                NAM       SuperDesc
                TTL       Super Driver Device Descriptor Template
 
 * Super Driver specific fields
-ITDRV          SET       $00
-ITSTP          SET       $00
-ITTYP          SET       $81
-ITDNS          SET       $00
+*ITDRV          SET       $00 GH - conflicting? Set in makefile GH
+ITSTP          SET       $00 GH - HDBDOS drive num in $hex
+ITTYP          SET       $81 GH - default=Hard drive, 512 byte sectors
 
-ITSOFS1        SET       $00
+*ITDNS          SET       $00 GH - conflicting? Set in makefile
+ITDNS		SET	ITDRV
+ITSOFS1        SET       $00 GH - partition offsets
 ITSOFS2        SET       $00
 ITSOFS3        SET       $00
 
@@ -67,7 +71,8 @@
 SectTrk        SET       $0020
 SectTrk0       SET       $0020
 Interlv        SET       $01
-SAS            SET       $08
+* GH - conditionalize this eventually to reduce disk fragmentation
+SAS            SET       $08 GH - S/B reset to $20 if not floppy
 
                IFP1      
                USE       defsfile
@@ -81,7 +86,7 @@
 
 tylg           SET       Devic+Objct
 atrv           SET       ReEnt+rev
-rev            SET       $09
+rev            SET       $0A
 
                MOD       eom,name,tylg,atrv,mgrnam,drvnam
 
@@ -94,10 +99,14 @@
                FDB       SDAddr              physical controller address
                FCB       initsize-*-1        initilization table size
                FCB       DT.RBF              device type:0=scf,1=rbf,2=pipe,3=scf
-               FCB       ITDRV               drive number
-               FCB       ITSTP               step rate
+               FCB       Dnum               drive number
+	       IFNE	 HDBDOS
+	       FCB	$80
+	       ELSE
+               FCB       ITSTP               step rate or HDBDOS #
+	       ENDC
                FCB       ITTYP               drive device type
-               FCB       ITDNS               media density
+               FCB       ITDNS               media density or bus addr SEE DEFS ABOVE!
                FDB       Cyls                number of cylinders (tracks)
                FCB       Sides               number of sides
                FCB       $01                 verify disk writes:0=on
@@ -122,7 +131,7 @@
 
                IFNE      NULL
 name           FCC       /NULL/
-               FCB       ITDRV+$B0
+               FCB       Dnum+$B0
                ELSE      
                IFNE      DD
 name           FCS       /DD/
@@ -132,15 +141,15 @@
                IFNE      HB
                FCS       /H/
                ELSE      
-               FCB       ITDRV+$B0
+               FCB       Dnum+$B0
                ENDC      
                ELSE      
                IFNE      IDE
 name           FCC       /I/
-               IFNE      HB
+               IFNE      HDBDOS
                FCS       /H/
                ELSE      
-               FCB       ITDRV+$B0
+               FCB       Dnum+$B0
                ENDC      
                ELSE      
                IFNE      SD
@@ -148,14 +157,14 @@
                IFNE      HB
                FCS       /H/
                ELSE      
-               FCB       ITDRV+$B0
+               FCB       Dnum+$B0
                ENDC      
                ELSE      
 name           FCC       /S/
-               IFNE      HB
+               IFNE      HDBDOS
                FCS       /H/
                ELSE      
-               FCB       ITDRV+$B0
+               FCB       Dnum+$B0
                ENDC      
                ENDC      
                ENDC