Home
last modified time | relevance | path

Searched refs:BYTES_PER_SECTOR (Results 1 – 1 of 1) sorted by relevance

/sdk/emulator/mksdcard/src/source/
Dmksdcard.c41 #define BYTES_PER_SECTOR 512 macro
48 #define MAX_DISK_SIZE ((Wide)MAX_SECTORS_PER_DISK * BYTES_PER_SECTOR)
60 static Byte s_boot_sector [ BYTES_PER_SECTOR ]; /* boot sector */
61 static Byte s_fsinfo_sector [ BYTES_PER_SECTOR ]; /* FS Info sector */
62 static Byte s_fat_head [ BYTES_PER_SECTOR ]; /* first FAT sector */
63 static Byte s_zero_sector [ BYTES_PER_SECTOR ]; /* empty sector */
105 disk_size -= RESERVED_SECTORS * BYTES_PER_SECTOR; /* don't count 32 reserved sectors */ in get_sectors_per_fat()
106 disk_size /= BYTES_PER_SECTOR; /* disk size in sectors */ in get_sectors_per_fat()
117 int sectors_per_disk = (int)(disk_size / BYTES_PER_SECTOR); in boot_sector_init()
128 POKES( boot + 0x0b, BYTES_PER_SECTOR ); /* sector size */ in boot_sector_init()
[all …]