6.2.2Logical address
(1)CHS mode
Logical address assignment starts from physical cylinder (PC) 0, physical head (PH) 0, and physical sector (PS) 1 and is assigned by calculating the number of sectors per track which is specified by the INITIALIZE DEVICE PARAMETERS command. The head address is advanced at the subsequent sector from the last sector of the current physical head address. The first physical sector of the subsequent physical sector is the consecutive logical sector from the last sector of the current physical sector.
Figure 6.5 shows an example (assuming there is no track skew).
Physical sector
Physical cylinder 0
Physical head 0
1 | 2 | 3 |
| . . |
|
|
|
| |
LS | LS |
|
|
|
1 | 2 |
|
| . . |
|
|
|
| |
|
|
|
| |
|
| LH0 |
62 63 | 64 |
| . . |
| 126 | 127 | . . |
| 189 | 190 | . . | 796 797 798 | |||||||
|
| LS | LS |
|
| LS | LS |
|
|
| LS | LS |
|
| LS | LS | LS | ||
|
| 63 | 1 |
| . . |
| 63 | 1 |
| . . |
| 63 | 1 |
| . . |
| 28 | 29 | 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
| LH1 |
| LH2 |
|
|
|
|
|
|
|
| Physical sector |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
Physical cylinder 0 | 1 |
| . . |
| 33 | 34 |
| . . |
| 96 | 97 |
| . . |
| 159 | 160 | . . |
| 222 | 223 | . . . . | 797 798 |
| ||||||
LS |
|
|
| LS | LS |
|
|
| LS | LS |
|
|
| LS | LS |
|
|
|
| LS | LS |
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||
Physical head 1 |
| 31 |
| . . |
| 63 | 1 |
| . . |
| 63 | 1 |
| . . |
| 63 | 1 |
| . . |
|
| 63 | 1 |
| . . . . |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
| LH13 | LH14 | LH15 | LH16 |
|
|
| . . . . |
|
|
|
| ||||||||||||||||
|
|
| LH1 |
ex: Zone 0
Physical parameter
-Physical sector: 1 to 798 (For the rest, 2 spare sectors) Specification of INITIALIZE DEVICE PARAMETERS command
-Logical head: LH=0 to 15
-Logical sector: LS=1 to 63
Figure 6.5 Address translation (example in CHS mode)
| 6 - 7 |