-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_rom_data.c
executable file
·273 lines (269 loc) · 3.57 KB
/
create_rom_data.c
1
#include <fcntl.h>#include <stdio.h>unsigned long rom_code[] = /*extracted from the 11/750 ROMS */{ /*Four ROMS each of size 0x100 bytes */ 0x4444C08F, 0x00010000, 0x5EDD589F, 0xCE04FDD4, 0x5816AF21, 0xE8500100, 0x7C519EAF, 0x3256D08F, 0x40000000, 0x50D58ED0, 0x8E58C28F, 0x00010000, 0x5E17CE0C, 0xFEDA011E, 0xD4523081, 0x00DB1D52, 0x3C8F0404, 0x521077DB, 0x1D579157, 0x1012F8BB, 0x8F6000D0, 0xAE0C55D4, 0x599ECF85, 0x0050D553, 0x13049A53, 0xA0049A05, 0x513C8052, 0x1049F551, 0xF83C5852, 0x10413C59, 0x52103C10, 0x53975212, 0x0F9A5156, 0x104C9051, 0x85F556F8, 0x104211EB, 0x3C0150C2, 0x8F000200, 0x0055D155, 0xAE0C1210, 0x102ED551, 0x190AD005, 0x551025F5, 0x55FB1102, 0xD450BA8F, 0x600005A0, 0x52591E02, 0xB6591005, 0x788FF852, 0x52DB1E57, 0xE10757F9, 0xDA521F05, 0x10009A51, 0x52DB1C57, 0xE10757F6, 0xDB1D5119, 0xCF05020A, 0x02000000, 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000000B3, 0x4D44C08F, 0x00010000, 0x5EBB20D0, 0x5251C08F, 0x201F0000, 0x52D455D4, 0x5816AF18, 0xE8500100, 0x9EAF1156, 0xD00150BA, 0x20C28F00, 0x0100005E, 0x17CE0CFE, 0xBB8F4000, 0xB020A208, 0x1073B053, 0xA208B001, 0x62106AB3, 0x8F0010A2, 0x08125BB3, 0x8F8000A2, 0x0A13E1D4, 0x56B38F00, 0x01A20A13, 0x05A88F00, 0x0456B020, 0xA2081045, 0xB053A208, 0xA9035662, 0x103BD459, 0x7B8F4200, 0x00005857, 0x58B057A2, 0x107B1658, 0x5859F058, 0x080859B0, 0x59A206B0, 0x55A204AE, 0x8F0001A2, 0x02A91156, 0x62100E3C, 0x0150B562, 0x1802D450, 0xBA8F4000, 0x05B38F80, 0x806213F9, 0x05000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000016, 0x4C44C08F, 0x00010000, 0x5EBB20D0, 0x5251C08F, 0x00190000, 0x52780853, 0x55B05562, 0x3C6255E9, 0x55FAD455, 0xD458101B, 0xE8500300, 0x11EE9EAF, 0x1256BA20, 0xC28F0001, 0x00005ED0, 0x02500117, 0xCE0CFEBB, 0x8F5A0378, 0x085353B0, 0x0BA2043E, 0xA30462C4, 0x0258D459, 0x7B8F5000, 0x00005856, 0x587B2858, 0x58547807, 0x5656F058, 0x06015610, 0x713EA308, 0x62106B3C, 0x6259E00F, 0x59693CA2, 0x06508A3F, 0x50B15650, 0x1332CB8F, 0x7F000000, 0x5651AA8F, 0x7F0050C2, 0x51501806, 0xAE505088, 0x04509650, 0xE1065603, 0x881050B0, 0x50A2043E, 0xA3066210, 0x2D3C6259, 0xE00F592B, 0xA05456B0, 0x55A202B0, 0x56A204B0, 0x8F00FFA2, 0x063EA30C, 0x62100F3C, 0x6259E00F, 0x590DD001, 0x50BA8F5A, 0x03059562, 0x18FC05D4, 0x50BA8F5A, 0x03050000, 0x00000000, 0x00000000, 0x00000000, 0x0000003B, 0x5544C0AF, 0x715EC38F, 0x00030000, 0x5E57C18F, 0x00FA0000, 0x57549EAF, 0xE751D151, 0x541209C0, 0xAF5454C0, 0xAF50AF54, 0xBB20D052, 0x51C08F68, 0x14000052, 0xD00256F5, 0x560100B4, 0x62D00B55, 0x9EAF3758, 0xB0A20259, 0x19EDE155, 0x59F6B088, 0xA202F30E, 0x55EED455, 0xD458DD57, 0x1024E850, 0x0100C004, 0x5E9EAF1A, 0x56D01150, 0xBA20C2AF, 0x055E17CE, 0x0CFE0001, 0x00000080, 0x04FA0000, 0x0100C355, 0xAE0457C0, 0xAFF25710, 0x2FB009A7, 0x48B562D5, 0x6719FC95, 0xA716121F, 0x101EB021, 0xA748D058, 0xA75CD055, 0xA750D002, 0xA74DB562, 0xD56719FC, 0x95A71612, 0x02D65005, 0xD05759D0, 0x0E507C89, 0xF550FBB0, 0x24A73CB0, 0x53A744C1, 0x8F0C0000, 0x805767C1, 0x8F400000, 0x8057A704, 0x05000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000029};#define ROMRESOURCE "rom.d"main(){int fd; fd = open( ROMRESOURCE, O_WRONLY | O_CREAT | O_TRUNC); write(fd,(char *) rom_code,sizeof(rom_code)); close(fd); }