; DSXD1 EQU Offset $ DSEG 0 ORG DSXD1 ;**************************************************************** ;* DISK LOGICAL TO PHYSICAL SECTOR TRANSLATION TABLES * ;**************************************************************** ; GPL1, GPL2, Physical sectors/track X8TABLE RS 0 if (FLOPPY8 and not LOADER) or (BOOT8X and LOADER) ; Single density, 128 byte sectors. DW XLT8S0 DB 07h, 1Bh, 26, 0 ;Format information "header" ; Double density, 256 byte sectors. DW XLT8D1 DB 0Eh, 36h, 26, 0 ; Double density, 512 byte sectors. DW XLT8D2 DB 1Bh, 54h, 15, 0 ; Double density, 1024 byte sectors. DW XLT8D3 DB 35h, 74h, 08, 0 ;--------------------------------------- XLT8S0 DB 0,6,12,18,24,4,10,16,22,2,8,14,20 DB 1,7,13,19,25,5,11,17,23,3,9,15,21 ;--------------------------------------- XLT8D1 DB 0, 1,18,19,36,37, 2, 3,20,21,38,39 DB 4, 5,22,23,40,41, 6, 7,24,25,42,43 DB 8, 9,26,27,44,45,10,11,28,29,46,47 DB 12,13,30,31,48,49,14,15,32,33,50,51 DB 16,17,34,35 ;--------------------------------------- XLT8D2 DB 0, 1, 2, 3,16,17,18,19 DB 32,33,34,35,48,49,50,51 DB 4, 5, 6, 7,20,21,22,23 DB 36,37,38,39,52,53,54,55 DB 8, 9,10,11,24,25,26,27 DB 40,41,42,43,56,57,58,59 DB 12,13,14,15,28,29,30,31 DB 44,45,46,47 ;--------------------------------------- XLT8D3 DB 0, 1, 2, 3, 4, 5, 6, 7 DB 24,25,26,27,28,29,30,31 DB 48,49,50,51,52,53,54,55 DB 8, 9,10,11,12,13,14,15 DB 32,33,34,35,36,37,38,39 DB 56,57,58,59,60,61,62,63 DB 16,17,18,19,20,21,22,23 DB 40,41,42,43,44,45,46,47 endif ;======================================= ; GPL1, GPL2, Physical sectors/track, Cylinder structure mask X5TABLE RS 0 if (FLOPPY5 and not LOADER) or (BOOT5X and LOADER) ; Single density, 128 byte sectors. DW XLT5S0 DB 08h, 10h, 16, 01000000b ;Format information "header" ; DB 07h, 09h, 18, 01000000b ;Optional replacement (tight) ; Double density, 256 byte sectors. DW XLT5D1 DB 10h, 19h, 16, 01100011b ; DB 07h, 09h, 18, 00000000b ;Optional replacement (tight) ; Double density, 512 byte sectors. DW XLT5D2 DB 2Ah, 50h, 08, 10000001b ;IBM - PC ; Double density, 1024 byte sectors. DW XLT5D3 DB 20h, 32h, 05, 10010001b ;CompuPro Standard Release ; DB 2Ah, 50h, 04, 10010001b ;Optional replacement (loose) ;--------------------------------------- XLT5S0 DB 0, 5,10,15, 4, 9,14, 3 ; 0, 5,10,15, 2, 7,12,17 DB 8,13, 2, 7,12, 1, 6,11 ; 4, 9,14, 1, 6,11,16, 3 DB 00,00 ; 8,13 ;--------------------------------------- XLT5D1 DB 0, 1,10,11,20,21,30,31 ; 0, 1,10,11,20,21,30,31 DB 8, 9,18,19,28,29 ; 4, 5,14,15,24,25,34,35 DB 6, 7,16,17,26,27 ; 8, 9,18,19,28,29 DB 4, 5,14,15,24,25 ; 2, 3,12,13,22,23,32,33 DB 2, 3,12,13,22,23,00,00,00,00 ; 6, 7,16,17,26,27 ;--------------------------------------- XLT5D2 DB 0, 1, 2, 3,16,17,18,19 DB 12,13,14,15,28,29,30,31 DB 8, 9,10,11,24,25,26,27 DB 4, 5, 6, 7,20,21,22,23 DB 00,00,00,00,00,00,00,00 ;Additional space for other allocations ;--------------------------------------- XLT5D3 DB 0, 1, 2, 3, 4, 5, 6, 7 DB 16,17,18,19,20,21,22,23 DB 32,33,34,35,36,37,38,39 DB 8, 9,10,11,12,13,14,15 DB 24,25,26,27,28,29,30,31 endif endif ;