diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2020-11-07 17:29:46 -0600 |
---|---|---|
committer | Seth Barberee <seth.barberee@gmail.com> | 2020-11-07 17:29:46 -0600 |
commit | df9385ed9e221a5a59b03b14e32988d8bd31fe3b (patch) | |
tree | 64970c140c523e07340c01b1a18245a8f59dac1d | |
parent | 31d0b3255386da62a95fcf9d89c8b6540a05406d (diff) |
continue my slow pace
-rw-r--r-- | asm/code_8092334.s | 19 | ||||
-rw-r--r-- | data/data_80F4278.s | 131 | ||||
-rw-r--r-- | src/code_8092334.c | 19 | ||||
-rw-r--r-- | src/save_mid.c | 4 |
4 files changed, 132 insertions, 41 deletions
diff --git a/asm/code_8092334.s b/asm/code_8092334.s index 8f83f45..cd890b2 100644 --- a/asm/code_8092334.s +++ b/asm/code_8092334.s @@ -5,25 +5,6 @@ .text - thumb_func_start sub_80923B8 -sub_80923B8: - push {lr} - movs r1, 0 - ldr r3, _080923D0 - movs r2, 0 -_080923C0: - ldr r0, [r3] - adds r0, r1 - strb r2, [r0] - adds r1, 0x1 - cmp r1, 0x39 - ble _080923C0 - pop {r0} - bx r0 - .align 2, 0 -_080923D0: .4byte gUnknown_203B468 - thumb_func_end sub_80923B8 - thumb_func_start sub_80923D4 sub_80923D4: push {r4,r5,lr} diff --git a/data/data_80F4278.s b/data/data_80F4278.s index 3ce982c..ad14020 100644 --- a/data/data_80F4278.s +++ b/data/data_80F4278.s @@ -6853,21 +6853,122 @@ gUnknown_810A808: @ 810A808 .global gUnknown_810AA90 gUnknown_810AA90: @ 810AA90 @ replacing .incbin "baserom.gba", 0x0010aa90, 0x1d0 - .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x01, 0x00, 0x7c, 0x15, 0x00, 0x00, 0x0a, 0x00, 0x01, 0x00, 0x94, 0x11, 0x00, 0x00, 0x04, 0x00, 0x01, 0x00, 0x40, 0x1f, 0x00, 0x00 - .byte 0x0c, 0x00, 0x01, 0x00, 0x7c, 0x15, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x01, 0x00, 0x88, 0x13, 0x00, 0x00 - .byte 0x0c, 0x00, 0x00, 0x00, 0x82, 0x00, 0x00, 0x00, 0x09, 0x00, 0x01, 0x00, 0x88, 0x13, 0x00, 0x00, 0x06, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x64, 0x19, 0x00, 0x00 - .byte 0x0d, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x58, 0x02, 0x00, 0x00, 0x0d, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0xbc, 0x02, 0x00, 0x00 - .byte 0x0a, 0x00, 0x01, 0x00, 0x88, 0x13, 0x00, 0x00, 0x03, 0x00, 0x01, 0x00, 0x64, 0x19, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x96, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x26, 0x02, 0x00, 0x00 - .byte 0x09, 0x00, 0x00, 0x00, 0x58, 0x02, 0x00, 0x00, 0x0f, 0x00, 0x01, 0x00, 0x88, 0x13, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00 - .byte 0x06, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x00, 0x00, 0x09, 0x00, 0x01, 0x00, 0x64, 0x19, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x00, 0x00 - .byte 0x0a, 0x00, 0x01, 0x00, 0x7c, 0x15, 0x00, 0x00, 0x04, 0x00, 0x01, 0x00, 0xc4, 0x09, 0x00, 0x00, 0x04, 0x00, 0x01, 0x00, 0xac, 0x0d, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0xc4, 0x09, 0x00, 0x00 - .byte 0x06, 0x00, 0x01, 0x00, 0x34, 0x21, 0x00, 0x00, 0x0b, 0x00, 0x01, 0x00, 0x4c, 0x1d, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x64, 0x19, 0x00, 0x00, 0x03, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 - .byte 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x20, 0x03, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0xe8, 0x03, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0xb0, 0x04, 0x00, 0x00 - .byte 0x0b, 0x00, 0x00, 0x00, 0xe8, 0x03, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x58, 0x02, 0x00, 0x00, 0x07, 0x00, 0x01, 0x00, 0x4c, 0x1d, 0x00, 0x00, 0x07, 0x00, 0x01, 0x00, 0x34, 0x21, 0x00, 0x00 - .byte 0x0e, 0x00, 0x01, 0x00, 0x7c, 0x15, 0x00, 0x00, 0x0e, 0x00, 0x01, 0x00, 0x7c, 0x15, 0x00, 0x00, 0x06, 0x00, 0x01, 0x00, 0x40, 0x1f, 0x00, 0x00, 0x0d, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00 - .byte 0x07, 0x00, 0x01, 0x00, 0x28, 0x23, 0x00, 0x00, 0x05, 0x00, 0x01, 0x00, 0x1c, 0x25, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00 - .byte 0x05, 0x00, 0x00, 0x00, 0xe8, 0x03, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xe8, 0x03, 0x00, 0x00, 0x03, 0x00, 0x03, 0x00, 0x4c, 0x1d, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, 0x1c, 0x25, 0x00, 0x00 - .byte 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x34, 0x21, 0x00, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x09, 0x00, 0x01, 0x00 + .byte 0x7c, 0x15, 0x00, 0x00 + .byte 0x0a, 0x00, 0x01, 0x00 + .byte 0x94, 0x11, 0x00, 0x00 + .byte 0x04, 0x00, 0x01, 0x00 + .byte 0x40, 0x1f, 0x00, 0x00 + .byte 0x0c, 0x00, 0x01, 0x00 + .byte 0x7c, 0x15, 0x00, 0x00 + .byte 0x01, 0x00, 0x03, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x01, 0x00, 0x03, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x05, 0x00, 0x01, 0x00 + .byte 0x88, 0x13, 0x00, 0x00 + .byte 0x0c, 0x00, 0x00, 0x00 + .byte 0x82, 0x00, 0x00, 0x00 + .byte 0x09, 0x00, 0x01, 0x00 + .byte 0x88, 0x13, 0x00, 0x00 + .byte 0x06, 0x00, 0x02, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x01, 0x00, 0x01, 0x00 + .byte 0x64, 0x19, 0x00, 0x00 + .byte 0x0d, 0x00, 0x00, 0x00 + .byte 0x64, 0x00, 0x00, 0x00 + .byte 0x0c, 0x00, 0x00, 0x00 + .byte 0x58, 0x02, 0x00, 0x00 + .byte 0x0d, 0x00, 0x02, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x0f, 0x00, 0x00, 0x00 + .byte 0xbc, 0x02, 0x00, 0x00 + .byte 0x0a, 0x00, 0x01, 0x00 + .byte 0x88, 0x13, 0x00, 0x00 + .byte 0x03, 0x00, 0x01, 0x00 + .byte 0x64, 0x19, 0x00, 0x00 + .byte 0x0e, 0x00, 0x00, 0x00 + .byte 0x96, 0x00, 0x00, 0x00 + .byte 0x0c, 0x00, 0x00, 0x00 + .byte 0x26, 0x02, 0x00, 0x00 + .byte 0x09, 0x00, 0x00, 0x00 + .byte 0x58, 0x02, 0x00, 0x00 + .byte 0x0f, 0x00, 0x01, 0x00 + .byte 0x88, 0x13, 0x00, 0x00 + .byte 0x07, 0x00, 0x00, 0x00 + .byte 0xf4, 0x01, 0x00, 0x00 + .byte 0x01, 0x00, 0x03, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x06, 0x00, 0x00, 0x00 + .byte 0xf4, 0x01, 0x00, 0x00 + .byte 0x09, 0x00, 0x01, 0x00 + .byte 0x64, 0x19, 0x00, 0x00 + .byte 0x07, 0x00, 0x00, 0x00 + .byte 0xf4, 0x01, 0x00, 0x00 + .byte 0x09, 0x00, 0x00, 0x00 + .byte 0xf4, 0x01, 0x00, 0x00 + .byte 0x0a, 0x00, 0x01, 0x00 + .byte 0x7c, 0x15, 0x00, 0x00 + .byte 0x04, 0x00, 0x01, 0x00 + .byte 0xc4, 0x09, 0x00, 0x00 + .byte 0x04, 0x00, 0x01, 0x00 + .byte 0xac, 0x0d, 0x00, 0x00 + .byte 0x07, 0x00, 0x00, 0x00 + .byte 0xc4, 0x09, 0x00, 0x00 + .byte 0x06, 0x00, 0x01, 0x00 + .byte 0x34, 0x21, 0x00, 0x00 + .byte 0x0b, 0x00, 0x01, 0x00 + .byte 0x4c, 0x1d, 0x00, 0x00 + .byte 0x01, 0x00, 0x01, 0x00 + .byte 0x64, 0x19, 0x00, 0x00 + .byte 0x03, 0x00, 0x02, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x04, 0x00, 0x02, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x0d, 0x00, 0x00, 0x00 + .byte 0x20, 0x03, 0x00, 0x00 + .byte 0x07, 0x00, 0x00, 0x00 + .byte 0xe8, 0x03, 0x00, 0x00 + .byte 0x0b, 0x00, 0x00, 0x00 + .byte 0xb0, 0x04, 0x00, 0x00 + .byte 0x0b, 0x00, 0x00, 0x00 + .byte 0xe8, 0x03, 0x00, 0x00 + .byte 0x06, 0x00, 0x00, 0x00 + .byte 0x58, 0x02, 0x00, 0x00 + .byte 0x07, 0x00, 0x01, 0x00 + .byte 0x4c, 0x1d, 0x00, 0x00 + .byte 0x07, 0x00, 0x01, 0x00 + .byte 0x34, 0x21, 0x00, 0x00 + .byte 0x0e, 0x00, 0x01, 0x00 + .byte 0x7c, 0x15, 0x00, 0x00 + .byte 0x0e, 0x00, 0x01, 0x00 + .byte 0x7c, 0x15, 0x00, 0x00 + .byte 0x06, 0x00, 0x01, 0x00 + .byte 0x40, 0x1f, 0x00, 0x00 + .byte 0x0d, 0x00, 0x03, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x07, 0x00, 0x01, 0x00 + .byte 0x28, 0x23, 0x00, 0x00 + .byte 0x05, 0x00, 0x01, 0x00 + .byte 0x1c, 0x25, 0x00, 0x00 + .byte 0x01, 0x00, 0x03, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x01, 0x00, 0x03, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x05, 0x00, 0x00, 0x00 + .byte 0xe8, 0x03, 0x00, 0x00 + .byte 0x03, 0x00, 0x00, 0x00 + .byte 0xe8, 0x03, 0x00, 0x00 + .byte 0x03, 0x00, 0x03, 0x00 + .byte 0x4c, 0x1d, 0x00, 0x00 + .byte 0x02, 0x00, 0x01, 0x00 + .byte 0x1c, 0x25, 0x00, 0x00 + .byte 0x01, 0x00, 0x03, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x01, 0x00, 0x01, 0x00 + .byte 0x34, 0x21, 0x00, 0x00 .global gUnknown_810AC60 gUnknown_810AC60: @ 810AC60 diff --git a/src/code_8092334.c b/src/code_8092334.c index d12bc44..f68e59b 100644 --- a/src/code_8092334.c +++ b/src/code_8092334.c @@ -6,8 +6,8 @@ extern u8 gUnknown_810AC7C[]; extern u8 gUnknown_810AC6A[]; extern u8 *gAbilityNames[]; extern u8 *AbilityDescriptions[]; -extern u32 gBoughtFriendAreas; -extern u32 *gUnknown_203B468; +extern u8 gBoughtFriendAreas[]; +extern u8 *gUnknown_203B468; u32 GetUnformattedTypeString(u8 type) { @@ -41,10 +41,19 @@ u8 *sub_8092390(u8 r0) void sub_80923A0(void) { - gUnknown_203B468 = &gBoughtFriendAreas; + gUnknown_203B468 = gBoughtFriendAreas; } -u32 *sub_80923B0(void) +u8 *sub_80923B0(void) { - return &gBoughtFriendAreas; + return gBoughtFriendAreas; +} + +void sub_80923B8(void) +{ + s32 counter; + for(counter = 0; counter <= 0x39; counter++) + { + gUnknown_203B468[counter] = 0; + } } diff --git a/src/save_mid.c b/src/save_mid.c index a124d66..ce1b378 100644 --- a/src/save_mid.c +++ b/src/save_mid.c @@ -35,7 +35,7 @@ extern u32 gUnknown_203B490; extern u32 gUnknown_203B464; extern u32 gUnknown_203B494; extern u8 *gUnknown_203B498; -extern u32 *gUnknown_203B468; +extern u8 *gUnknown_203B468; extern u32 gUnknown_203B46C; extern void sub_800135C(void); @@ -45,7 +45,7 @@ extern u32 *sub_80909D0(void); extern void sub_80909D8(void); extern u32 sub_809208C(void); extern void sub_8092094(void); -extern u32 *sub_80923B0(void); +extern u8 *sub_80923B0(void); extern void sub_80923B8(void); extern u32 sub_8094990(void); extern void sub_8094998(u8 r0); |