changeset 3211:aa01cfa11267

Updated makefile for EmuDsk driver so that a disk image would be created with a layout that matches the distribution of the NitrOS-9 disk images so that the files can be easily dsaved across onto existing disk images. Also updated ddh0.asm, h0.asm, and h1.asm to use a geometry that will yield a clust size of 1 disk image with almost the max 128MB size as well as using a geometry that is more friendly with storing a boot track on it for use with being shared with the CoCoSDC.
author David Ladd <drencor-xeen@users.sourceforge.net>
date Wed, 20 Dec 2017 15:26:30 -0600
parents 6353bb024571
children 00dc1ef6a7aa
files 3rdparty/drivers/emudsk/ddh0.asm 3rdparty/drivers/emudsk/h0.asm 3rdparty/drivers/emudsk/h1.asm 3rdparty/drivers/emudsk/makefile
diffstat 4 files changed, 50 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/3rdparty/drivers/emudsk/ddh0.asm	Wed Dec 20 15:15:49 2017 -0600
+++ b/3rdparty/drivers/emudsk/ddh0.asm	Wed Dec 20 15:26:30 2017 -0600
@@ -26,11 +26,11 @@
  FCB $00 step rate
  FCB $80 type=nonstd,coco
  FCB $01 double density
- FDB $005a tracks
- FCB $40 one side
+ FDB $71c6 tracks
+ FCB $01 one side
  FCB $01 no verify
- FDB $0040 sectors/track
- FDB $0040 "", track 0
+ FDB $0012 sectors/track
+ FDB $0012 "", track 0
  FCB $03 interleave
  FCB $20 min allocation
 optl EQU *-optns
--- a/3rdparty/drivers/emudsk/h0.asm	Wed Dec 20 15:15:49 2017 -0600
+++ b/3rdparty/drivers/emudsk/h0.asm	Wed Dec 20 15:26:30 2017 -0600
@@ -26,11 +26,11 @@
  FCB $00 step rate
  FCB $80 type=nonstd,coco
  FCB $01 double density
- FDB $005a tracks
- FCB $40 one side
+ FDB $71c6 tracks
+ FCB $01 one side
  FCB $01 no verify
- FDB $0040 sectors/track
- FDB $0040 "", track 0
+ FDB $0012 sectors/track
+ FDB $0012 "", track 0
  FCB $03 interleave
  FCB $20 min allocation
 optl EQU *-optns
--- a/3rdparty/drivers/emudsk/h1.asm	Wed Dec 20 15:15:49 2017 -0600
+++ b/3rdparty/drivers/emudsk/h1.asm	Wed Dec 20 15:26:30 2017 -0600
@@ -26,11 +26,11 @@
  FCB $00 step rate
  FCB $80 type=nonstd,coco
  FCB $01 double density
- FDB $005a tracks
- FCB $40 one side
+ FDB $71c6 tracks
+ FCB $01 one side
  FCB $01 no verify
- FDB $0040 sectors/track
- FDB $0040 "", track 0
+ FDB $0012 sectors/track
+ FDB $0012 "", track 0
  FCB $03 interleave
  FCB $20 min allocation
 optl EQU *-optns
--- a/3rdparty/drivers/emudsk/makefile	Wed Dec 20 15:15:49 2017 -0600
+++ b/3rdparty/drivers/emudsk/makefile	Wed Dec 20 15:26:30 2017 -0600
@@ -2,12 +2,49 @@
 
 DEPENDS		= ./makefile
 
-DRIVERS		= emudsk.dr
+DRIVERS		= emudsk_6809.dr emudsk_6309.dr
 DESCS		= h0.dd ddh0.dd h1.dd
 ALLOBJS		= $(DRIVERS) $(DESCS)
+DSK			= Modules_EmuDisk.dsk
 
 all:	$(ALLOBJS) $(DEPENDS)
 
+emudsk_6809.dr: emudsk.asm
+	$(AS) $(ASOUT)$@ $< $(AFLAGS)
+
+emudsk_6309.dr: emudsk.asm
+	$(AS) $(ASOUT)$@ $< $(AFLAGS) -DH6309=1
+
+dsk: $(DSK)
+
+$(DSK): all
+	$(RM) $@
+	$(OS9FORMAT_SS35) $@ -n"EmuDsk"
+	$(MAKDIR) $@,NITROS9
+	$(MAKDIR) $@,NITROS9/6809_L2
+	$(MAKDIR) $@,NITROS9/6309_L2
+	$(MAKDIR) $@,NITROS9/6809_L2/MODULES
+	$(MAKDIR) $@,NITROS9/6309_L2/MODULES
+	$(MAKDIR) $@,NITROS9/6809_L2/MODULES/RBF
+	$(MAKDIR) $@,NITROS9/6309_L2/MODULES/RBF
+	$(OS9COPY) h0.dd $@,NITROS9/6809_L2/MODULES/RBF/h0_emudisk.dd
+	$(OS9COPY) h0.dd $@,NITROS9/6309_L2/MODULES/RBF/h0_emudisk.dd
+	$(OS9COPY) h1.dd $@,NITROS9/6809_L2/MODULES/RBF/h1_emudisk.dd
+	$(OS9COPY) h1.dd $@,NITROS9/6309_L2/MODULES/RBF/h1_emudisk.dd
+	$(OS9COPY) ddh0.dd $@,NITROS9/6809_L2/MODULES/RBF/ddh0_emudisk.dd
+	$(OS9COPY) ddh0.dd $@,NITROS9/6309_L2/MODULES/RBF/ddh0_emudisk.dd
+	$(OS9COPY) emudsk_6809.dr $@,NITROS9/6809_L2/MODULES/RBF/emudsk.dr
+	$(OS9COPY) emudsk_6309.dr $@,NITROS9/6309_L2/MODULES/RBF/emudsk.dr
+
+dskcopy: $(DSK)
+	$(CP) $(DSK) $(DSKDIR)
+
+dskclean:
+	$(RM) $(DSK)
+
 clean:
 	$(RM) $(ALLOBJS)
 
+info:
+	@$(ECHO) "*** EmuDsk ***"
+	@$(ECHO) $(DSK)