Mercurial > repos > genjam1
comparison boot/rom_head.c @ 0:826a1cb3f873
Copied SGDK project skeleton
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 12 Jan 2014 11:24:36 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:826a1cb3f873 |
---|---|
1 #include "types.h" | |
2 | |
3 | |
4 const struct | |
5 { | |
6 char console[16]; /* Console Name (16) */ | |
7 char copyright[16]; /* Copyright Information (16) */ | |
8 char title_local[48]; /* Domestic Name (48) */ | |
9 char title_int[48]; /* Overseas Name (48) */ | |
10 char serial[14]; /* Serial Number (2, 12) */ | |
11 u16 checksum; /* Checksum (2) */ | |
12 char IOSupport[16]; /* I/O Support (16) */ | |
13 u32 rom_start; /* ROM Start Address (4) */ | |
14 u32 rom_end; /* ROM End Address (4) */ | |
15 u32 ram_start; /* Start of Backup RAM (4) */ | |
16 u32 ram_end; /* End of Backup RAM (4) */ | |
17 char sram_sig[2]; /* "RA" for save ram (2) */ | |
18 u16 sram_type; /* 0xF820 for save ram on odd bytes (2) */ | |
19 u32 sram_start; /* SRAM start address - normally 0x200001 (4) */ | |
20 u32 sram_end; /* SRAM end address - start + 2*sram_size (4) */ | |
21 char modem_support[12]; /* Modem Support (24) */ | |
22 char notes[40]; /* Memo (40) */ | |
23 char region[16]; /* Country Support (16) */ | |
24 } rom_header = { | |
25 "SEGA MEGA DRIVE ", | |
26 "(C)FLEMTEAM 2013", | |
27 "SAMPLE PROGRAM ", | |
28 "SAMPLE PROGRAM ", | |
29 "GM 00000000-00", | |
30 0x0000, | |
31 "JD ", | |
32 0x00000000, | |
33 0x00100000, | |
34 0x00FF0000, | |
35 0x00FFFFFF, | |
36 " ", | |
37 0x0000, | |
38 0x00200000, | |
39 0x002001FF, | |
40 " ", | |
41 "DEMONSTRATION PROGRAM ", | |
42 "JUE " | |
43 }; |