LSXDODGERS LDDPB

From Z80 Machines Wiki
Jump to: navigation, search

· LSX-Dodgers

· DPB (drive parameter block) 32 bytes 


<Offset> <Size> <Contents>

+$00 *2 Size in 1-byte FAT area in sector units If 0, this drive is not used

+$01 1 byte media byte

+$02 *2 Execution address of 2 byte 1 sector read routine

+$04 *2 Execution address of 2 byte 1 sector write routine

+$06 Leading logical sector number of 1 byte data storage area -2

+$07 1 byte Relationship between logical sector and cluster

$00: 1 cluster = 2 sectors $29: 1 cluster = 1 sector

+$08 2 bytes Total number of clusters (Including 0 cluster and 1 cluster which can not be used)

+$0A 1-byte floppy disk mode $FF: 2D / 2DD $FE: 2HD $00: Device other than floppy

+$0B Logical sector number at the end of 1 byte root directory area + 1

+$0C *1 Number of cylinders of 1 byte floppy disk

+$0D *1 Number of sectors per track on 1 byte floppy disk

+$0E 1 byte First logical sector number of FAT area

+$0F *2 1 byte Upper 1 bit 0: 1 Cluster 1024 bytes 1: 1 cluster 512 bytes Lower 7 bits: Number of FAT regions

+$10 1 byte First logical sector number in the root directory area

+$11 *1 Minimum value of sector of 1 byte floppy disk

+$12 1 byte device number $05: G-RAM $06: EMM $07: Floppy ($87) $0B: B- RAM $7F: User (Lower 7 bits valid)

+$13 Unit number in 1 byte device driver

+$14 * 2 2 bytes not used

+$16 Execution address of the routine for reading the contents of 2 byte FAT

+$18 Execution address of routine to write data to 2 byte FAT

+$1A 2 bytes Cluster number of the current directory If it is 0, the root directory

+$1C 4 byte device name

  • 1 Only for internal floppy disk driver
  • 2 Different from L-os Angeles
  • DPB Remarks

DPB structure is different from CP/M80 and MSX-DOS. For DPB of the same format as MSX-DOS, DPB level of model ID is 0.In the case of the LSX format, the DPB level of the model ID is 1.