Return stuff to its rightful place, and set up struct definitions for later

This commit is contained in:
PikalaxALT 2017-11-18 20:33:53 -05:00
parent f25cdb4837
commit 728532be77
6 changed files with 3566 additions and 3563 deletions

3546
asm/link.s

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -3,6 +3,25 @@
// Exported type declarations
struct UnkLinkRfuStruct_02022B14
{
u8 unk_00_0:4;
u8 unk_00_4:1;
u8 unk_00_5:1;
u8 unk_00_6:2;
u8 filler_01[2];
u8 unk_03[4];
u16 unk_08_0:10;
u16 unk_09_2:6;
u8 unk_0a_0:7;
u8 unk_0a_7:1;
u8 unk_0b_0:1;
u8 unk_0b_1:7;
u8 unk_0c;
u8 unk_0d;
u8 filler_0e[8];
};
struct UnkLinkRfuStruct_02022B2C
{
u8 filler_00[16];

View file

@ -53,7 +53,6 @@ SECTIONS {
src/string_util.o(.text);
src/link.o(.text);
src/link_rfu.o(.text);
asm/link.o(.text);
asm/link_rfu.o(.text);
asm/rom_8011DC0.o(.text);
src/rtc.o(.text);

View file

@ -15,6 +15,10 @@ ALIGNED(4) IWRAM_DATA u8 gUnknown_03000D78[8];
IWRAM_DATA u8 gUnknown_03000D80[16];
IWRAM_DATA u16 gUnknown_03000D90[8];
EWRAM_DATA u8 gUnknown_02022B10 = 0;
EWRAM_DATA struct UnkLinkRfuStruct_02022B14 gUnknown_02022B14 = {};
EWRAM_DATA struct UnkLinkRfuStruct_02022B2C gUnknown_02022B2C = {};
// Static ROM declarations
void sub_800C000(void);

View file

@ -19,18 +19,7 @@ gStringVar4: @ 2021FC4
.include "src/string_util.o"
.include "src/link.o"
gUnknown_02022B10: @ 2022B10
.space 0x4
gUnknown_02022B14: @ 2022B14
.space 0xE
gUnknown_02022B22: @ 2022B22
.space 0xA
gUnknown_02022B2C: @ 2022B2C
.space 0x18
.include "src/link_rfu.o"
gUnknown_02022B44: @ 2022B44
.space 0xDC