2 hdd image creater for EmuZ-2500
4 Author : Takeda.Toshiya
10 // variable scope of 'for' loop (for microsoft visual c++ 6.0)
11 #define for if(0);else for
13 typedef unsigned char uint8_t;
15 //#define HDD_SIZE (20*1024*1024)
16 #define HDD_SIZE 22437888
20 uint8_t header[0x30] = {
21 0x4d,0x5a,0x2d,0x32,0x35,0x30,0x30,0x20,0x48,0x44,0x20,0x73,0x79,0x73,0x74,0x65,
22 0x6d,0x20,0x62,0x79,0x20,0x53,0x48,0x41,0x52,0x50,0x20,0x43,0x6f,0x72,0x70,0x2e,
23 0x20,0x20,0x56,0x31,0x2e,0x30,0x41,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20
26 FILE* fp = fopen("HDD1.DAT", "wb");
27 fwrite(header, sizeof(header), 1, fp);
28 for(int i = 0; i < 0xd0; i++)
30 for(int i = 0; i < 0x100; i++)
32 for(int i = 0; i < HDD_SIZE - 0x200; i++)
36 fp = fopen("HDD2.DAT", "wb");
37 fwrite(header, sizeof(header), 1, fp);
38 for(int i = 0; i < 0xd0; i++)
40 for(int i = 0; i < 0x100; i++)
42 for(int i = 0; i < HDD_SIZE - 0x200; i++)