Changeset 47 for trunk/TOOLS/INTERNAL/FIXCODE.C
- Timestamp:
- Apr 12, 2014, 11:24:51 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TOOLS/INTERNAL/FIXCODE.C
r46 r47 22 22 // It is a quick-and-dirty translation of the original DOS-only ASM file. 23 23 // Of course it's not as small but it's much easier to maintain across 24 // multiple platforms. 24 // multiple platforms. A small change with regard to the old ASM version is 25 // that it directly writes AIRBOOT.BIN instead of writing AIR-BOOT.COM. 26 // This way the pre and post situations are kept valid. 25 27 */ 26 28 … … 49 51 #define IN_FILE "AIR-BOOT.COM" // Target from assembly. 50 52 #ifdef PLATFORM_LINUX 51 #define MERGE_FILE "MBR-PROT/MBR-PROT.BIN" // MBR protection TSR.53 #define MERGE_FILE "MBR-PROT/MBR-PROT.BIN" // MBR Protection Image. 52 54 #else 53 #define MERGE_FILE "MBR-PROT\\MBR-PROT.BIN" // MBR protection TSR.55 #define MERGE_FILE "MBR-PROT\\MBR-PROT.BIN" // MBR Protection Image. 54 56 #endif 55 57 #define OUT_FILE "AIRBOOT.BIN" // Generated loader image. … … 158 160 /* 159 161 // Find Protection Image Signature. 160 // Note that this signature must reside on a sector boundary. 162 // Note that this signature must reside on a sector boundary in the 163 // AIR-BOOT.COM image. 161 164 */ 162 165 for (i=0; i<55; i++) { … … 168 171 169 172 /* 170 // Merge Protection Image.173 // Abort if not found. 171 174 */ 172 175 printf("%s",MergeMBR); … … 175 178 exit(2); 176 179 } 180 181 /* 182 // Merge Protection Image. 183 */ 177 184 memcpy(&BootCode[i*SECSIZE], MBRProtection, MBRPROT_SIZE); 178 185 printf("%s", Okay); … … 181 188 /* 182 189 // Count Code Sectors. 183 // Obsolete now since the Protection Image has moved just below the184 // Configuration and the code is always max. size.190 // Obsolete now because since v1.0.8 the Protection Image has moved just 191 // below the Configuration and the code is always max. size. 185 192 // Overlap checking is done while assembling AIR-BOOT.ASM. 193 // So we just write the max. code sectors here. 186 194 */ 187 195 printf("%s", CountCode);
Note:
See TracChangeset
for help on using the changeset viewer.