Mercurial > hg > Members > kono > nitros9-code
view level1/modules/mc09sdcdesc.asm @ 3154:d29a92fff7f2
coco3fpga: Rename SD disk images to .img
To avoid confusion since they are not bootable disks,
but to be raw copied to the /sd0 partition on the
CoCo3FPGA SD card.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Tue, 07 Feb 2017 00:37:28 +0100 |
parents | 35fb39e4b218 |
children |
line wrap: on
line source
******************************************************************** * mc09sdcdesc - Multicomp09 SDCC Device Descriptor Template * * $Id$ * * Edt/Rev YYYY/MM/DD Modified by * Comment * ------------------------------------------------------------------ * 2015/08/31 ncrook * Created from 1773 descriptor template * 2016/01/07 ncrook * Bill Nobel pointed out the impact of reusing the Interlv and SAS * bytes, so I have allocated 2 new bytes for SDOFFSET. Also, set the * track and sector count correctly because these are needed for * calculations by RBF during writes. nam mc09sddesc ttl Multicomp09 SDCC Device Descriptor Template use defsfile tylg set Devic+Objct atrv set ReEnt+rev rev set $00 * All of these values can be provided on the build line in the Makefile * overriding the defaults below IFNDEF DNum DNum set 0 ENDC IFNE D35 Type set TYP.CCF+TYP.3 ELSE Type set TYP.CCF+TYP.5 ENDC IFNDEF Density Density set DNS.MFM ENDC Step set STP.6ms IFNDEF Cyls Cyls set 35 ENDC IFNDEF Sides Sides set 1 ENDC Verify set 1 IFNDEF SectTrk SectTrk set 18 ENDC IFNDEF SectTrk0 SectTrk0 set 18 ENDC IFNDEF Interlv Interlv set 3 ENDC IFNDEF SAS SAS set 8 ENDC mod eom,name,tylg,atrv,mgrnam,drvnam fcb DIR.!SHARE.!PEXEC.!PWRIT.!PREAD.!EXEC.!UPDAT. mode byte fcb HW.Page extended controller address fdb $FFD8 physical controller (base) address fcb initsize-*-1 initialization table size * In "The NitrOS-9 Technical Reference" describes this initialisation table. * The first byte is at offset IT.DTP from the start of the module but is copied * to PD.DTP in the path descriptor. 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 fcb 0 IT.TFM fdb 0 IT.Exten fcb 0 IT.STOff * SDcard driver-specific additions to the device descriptor go * here. They do NOT get copied into the path descriptor; they * cannot because there is NO ROOM. The driver has to access these * values directly in the descriptor (see rbsuper/superdesc for how) * High 16 bits of the 24-bit SDcard block address corresponding * to the start of this disk image. fdb SDOFFSET initsize equ * IFNE DD name fcs /DD/ ELSE name fcb 'D,'0+DNum+$80 ENDC mgrnam fcs /RBF/ drvnam fcs /mc09sd/ emod eom equ * end