[Coco] Creating /d1 descriptor for 2nd floppy?
Barry Nelson
barry.nelson at amobiledevice.com
Wed Apr 22 01:29:33 EDT 2015
Below is a source listing of a /d1 device descriptor. You can use the dmode command to change the number of sides and number of tracks. If you type:
save d1
from a disk that has one, you can then load it after booting another disk by typing:
load d1
You can also use os9gen to generate a new os9 boot system that includes the modules you want.
ftp://69.43.38.172/mirrors/Tandy%20Radio%20Shack%20Software/RSDOS/incoming/emulator_images/TUTOR4.TXT
IFP1
USE /DD/DEFS/defsfile
ENDC
type SET Devic+Objct
MOD rend,rnam,type,ReEnt+1,fmnam,drvnam
FCB $FF all access modes
FCB $07,$FF,$40 device address
FCB optl number of options
optns EQU *
FCB DT.RBF RBF device
FCB $01 drive number
FCB $00 step rate
FCB $20 type=nonstd,coco
FCB $01 double density
FDB $0023 tracks
FCB $01 one side
FCB $00 no verify
FDB $0012 sectors/track
FDB $0012 "", track 0
FCB $03 interleave
FCB $01 min allocation
optl EQU *-optns
rnam FCS /D1/
fmnam FCS /RBF/
drvnam FCS /CC3Disk/
EMOD
rend EQU *
end
==============================
This is a hex dump of a 35 track single sided /d1
Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 2 4 6 8 A C E
---- ---- ---- ---- ---- ---- ---- ---- ---- ----------------
0000 87CD 0030 0021 F181 D400 2300 26FF 07FF .M.0.!q.T.#.&...
0010 400F 0101 0020 0100 2301 0000 1200 1203 @.... ..#.......
0020 0144 B152 42C6 4343 3344 6973 EB9F F714 .D1RBFCC3Disk.w.
The bytes 07 FF 40 indicate the address of the floppy controller
The bytes 23 01 indicate 35 tracks and a 1 sided disk, 23 in hexadecimal = 35 in decimal.
The dmode command can adjust these and other disk settings.
On Apr 21, 2015, at 11:15 AM, coco-request at maltedmedia.com wrote:
> Date: Tue, 21 Apr 2015 13:41:06 +0000
> From: Christopher Barnett Fox <cbfox01 at syr.edu>
> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
> Subject: [Coco] Creating /d1 descriptor for 2nd floppy?
> Message-ID: <D15BCBB0.1EDE6%cbfox01 at syr.edu>
> Content-Type: text/plain; charset="utf-8"
>
> Good morning!
>
> I'll expose my forgotten knowledge here... I have some old OS-9 Lvl II
> boot disks that already have a working /d1 device descriptor that I can
> use to access a second DSDD 40-track floppy drive. I have some others that
> don't have the /d1 descriptor.
>
> What's the process to create the descriptor? I have the old Rainbow guides
> to OS-9 and OS-9 Lvl II, but can't seem to find any documentation there. I
> see references to tmode?
>
> Thanks!
>
> Christopher
More information about the Coco
mailing list