![]() CP/M on the MZ-80B -
Disk Parameter Block & Bootstrap Code written by Maurice Hawes / SUC/UK
Source: SUC-magazine July 2003, Volume 23 Number 2, pp. 11 - 12 |
|||||||||||||||||||||||||||
Sharp Users Club - MZ-80B Section - CP/M via DPB.COM | |||||||||||||||||||||||||||
Parameters for Drive A:
( CP/M 2.2.2.15, like most CP/M systems, uses 128-byte logical sectors ) 80 Sectors per Track seems impossibly high until you realize that, in M-T's CP/M 2.2 on the MZ-80B, a 'Logical Track' extends over BOTH sides of a disk and there are therefore only 35 'Logical Tracks' on the disk as a whole. Each such 'Logical Track' has a capacity of 128 * 80 Bytes = 10,240
( 10K ), and the capacity of a whole disk is BSH = 4 and BLM = 15 both give a block size of 2K ( 2048 bytes ). EXM = 1 implies that, in this case, a 'Physical Extent' contains TWO 'Logical Extents' and is therefore 32K. DSM = 169 implies that a disk contains 170 CP/M blocks ( i.e. 340K ). DRM = 127 implies that the Directory can hold 128 entries. AL0 - AL1 = 1100 0000 implies that the Directory is allocated the first 2 CP/M blocks ( i.e. Blocks 00 & 01, 4K ). OFS = 1 implies that Track 0 is reserved for system use, and
CP/M Block 00 is at the start of Track 1. |
|||||||||||||||||||||||||||
Further Information | |||||||||||||||||||||||||||
The FILES.COM program in M-T's 5.25" MZ-80B CP/M confirms this figure. DISCMOD3 reveals the following sections of code on Track 0:-
|
|||||||||||||||||||||||||||
( CP/M 2.2.2.12, like most CP/M systems, uses 128-byte logical sectors ) Once again, a 'Logical Track' extends over BOTH sides of the disk,
so there are only 80 'Logical Tracks' on a 3.5" 80-track double-sided
disk. The overall disk capacity is therefore BSH = 5 and BLM =31 both give a block size of 4K ( 4096 bytes ). EXM = 3 implies that, in this case, a 'Physical Extent' contains FOUR 'Logical Extents' and is therefore 64K. DSM = 196 implies that a disk contains 197 CP/M blocks ( i.e. 788K ). DRM = 127 implies that the Directory can hold 128 entries. ALO - AL1 = 1000 0000 implies that the Directory is allocated only the first CP/M block ( i.e. Block 00, 4K ). OFS = 1 implies that Track 0 is reserved for system use, and
that CP/M Block 00 is at the start of Track 1. |
|||||||||||||||||||||||||||
Further Information | |||||||||||||||||||||||||||
FILES.COM program in this 3.5" version of MZ-80B CP/M confirms this figure. DISCMOD3 reveals the following sections of code on Track 0:-
|
|||||||||||||||||||||||||||
NOTE ON 'SPIN8.COM' for Microtechnology CP/M version 2.2.2.12 | |||||||||||||||||||||||||||
|