testing globals stuff

This commit is contained in:
Henny022p 2021-02-26 23:01:23 +01:00
parent de6163dbb7
commit 1ffa1f4eb6
3 changed files with 5 additions and 9 deletions

View File

@ -10303,8 +10303,3 @@ gUnk_08DE7D18:: @ 08DE7D18
gUnk_08DE7D28:: @ 08DE7D28
.incbin "baserom.gba", 0xDE7D28, 0x0000018
gEEPROMConfig512:: @ 08DE7D40
.incbin "baserom.gba", 0xDE7D40, 0x000000C
gEEPROMConfig8k:: @ 08DE7D4C
.incbin "baserom.gba", 0xDE7D4C, 0x0000058

View File

@ -1033,6 +1033,7 @@ SECTIONS {
data/strings.o(.rodata);
data/sprite_table.o(.rodata);
data/data_089FC6C4.o(.rodata);
src/code_080B1520.o(.rodata);
} >rom
/* DWARF 2 sections */

View File

@ -1,6 +1,6 @@
#include "global.h"
typedef struct struct_08DE7D40 {
typedef struct EEPROMConfig {
u32 unk_00;
u16 size;
u16 waitcnt;
@ -8,9 +8,9 @@ typedef struct struct_08DE7D40 {
// u8 filler[3];
} EEPROMConfig;
extern EEPROMConfig* gEEPROMConfig;
extern EEPROMConfig gEEPROMConfig512;
extern EEPROMConfig gEEPROMConfig8k;
extern const EEPROMConfig* gEEPROMConfig;
const EEPROMConfig gEEPROMConfig512 = { 0x200, 0x40, 0x300, 0x6 };
const EEPROMConfig gEEPROMConfig8k = { 0x2000, 0x400, 0x300, 0xe };
u16 sub_080B16AC(u16, u16*, u8);