Lines Matching refs:boot

60 static Byte  s_boot_sector   [ BYTES_PER_SECTOR ];   /* boot sector */
113 boot_sector_init( Bytes boot, Bytes info, Wide disk_size, const char* label )
124 POKEB(boot, 0xeb);
125 POKEB(boot+1, 0x5a);
126 POKEB(boot+2, 0x90);
127 strcpy( (char*)boot + 3, "MSWIN4.1" );
128 POKES( boot + 0x0b, BYTES_PER_SECTOR ); /* sector size */
129 POKEB( boot + 0xd, sectors_per_cluster ); /* sectors per cluster */
130 POKES( boot + 0xe, RESERVED_SECTORS ); /* reserved sectors before first FAT */
131 POKEB( boot + 0x10, NUM_FATS ); /* number of FATs */
132 POKES( boot + 0x11, 0 ); /* max root directory entries for FAT12/FAT16, 0 for FAT32 */
133 POKES( boot + 0x13, 0 ); /* total sectors, 0 to use 32-bit value at offset 0x20 */
134 POKEB( boot + 0x15, 0xF8 ); /* media descriptor, 0xF8 == hard disk */
135 POKES( boot + 0x16, 0 ); /* Sectors per FAT for FAT12/16, 0 for FAT32 */
136 POKES( boot + 0x18, 9 ); /* Sectors per track (whatever) */
137 POKES( boot + 0x1a, 2 ); /* Number of heads (whatever) */
138 POKEW( boot + 0x1c, 0 ); /* Hidden sectors */
139 POKEW( boot + 0x20, sectors_per_disk ); /* Total sectors */
142 POKEW( boot + 0x24, sectors_per_fat ); /* Sectors per FAT */
143 POKES( boot + 0x28, 0 ); /* FAT flags */
144 POKES( boot + 0x2a, 0 ); /* version */
145 POKEW( boot + 0x2c, 2 ); /* cluster number of root directory start */
146 POKES( boot + 0x30, 1 ); /* sector number of FS information sector */
147 POKES( boot + 0x32, BACKUP_BOOT_SECTOR ); /* sector number of a copy of this boot sector */
148 POKEB( boot + 0x40, 0x80 ); /* physical drive number */
149 POKEB( boot + 0x42, 0x29 ); /* extended boot signature ?? */
150 POKEW( boot + 0x43, serial_id ); /* serial ID */
151 strncpy( (char*)boot + 0x47, label, 11 ); /* Volume Label */
152 memcpy( boot + 0x52, "FAT32 ", 8 ); /* FAT system type, padded with 0x20 */
154 POKEB( boot + BYTES_PER_SECTOR-2, 0x55 ); /* boot sector signature */
155 POKEB( boot + BYTES_PER_SECTOR-1, 0xAA );
293 * backup boot sector