Mass reformat
This commit is contained in:
parent
4d27def35e
commit
df11e34235
27 changed files with 121 additions and 136 deletions
24
gba_header.c
24
gba_header.c
|
|
@ -5,18 +5,18 @@
|
|||
|
||||
// Structure to hold GBA ROM header data
|
||||
typedef struct {
|
||||
uint32_t entry_point; // 0x08000000 - Entry Point
|
||||
uint8_t nintendo_logo[156]; // 0x08000004 - Nintendo Logo
|
||||
char game_title[12]; // 0x080000A0 - Game Title
|
||||
char game_code[4]; // 0x080000AC - Game Code (e.g., "AGB-XXXX")
|
||||
char maker_code[2]; // 0x080000B0 - Maker Code
|
||||
uint8_t fixed_value; // 0x080000B2 - Always 0x96
|
||||
uint8_t main_unit_code; // 0x080000B3 - Usually 0x00
|
||||
uint8_t device_type; // 0x080000B4 - Usually 0x00
|
||||
uint8_t reserved1[7]; // 0x080000B5 - Reserved
|
||||
uint8_t software_version; // 0x080000BC - Software Version
|
||||
uint8_t complement_check; // 0x080000BD - Header Checksum
|
||||
uint8_t reserved2[2]; // 0x080000BE - Reserved
|
||||
uint32_t entry_point; // 0x08000000 - Entry Point
|
||||
uint8_t nintendo_logo[156]; // 0x08000004 - Nintendo Logo
|
||||
char game_title[12]; // 0x080000A0 - Game Title
|
||||
char game_code[4]; // 0x080000AC - Game Code (e.g., "AGB-XXXX")
|
||||
char maker_code[2]; // 0x080000B0 - Maker Code
|
||||
uint8_t fixed_value; // 0x080000B2 - Always 0x96
|
||||
uint8_t main_unit_code; // 0x080000B3 - Usually 0x00
|
||||
uint8_t device_type; // 0x080000B4 - Usually 0x00
|
||||
uint8_t reserved1[7]; // 0x080000B5 - Reserved
|
||||
uint8_t software_version; // 0x080000BC - Software Version
|
||||
uint8_t complement_check; // 0x080000BD - Header Checksum
|
||||
uint8_t reserved2[2]; // 0x080000BE - Reserved
|
||||
} GBAHeader;
|
||||
|
||||
// Function to read and display the ROM header
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue