decompile window

This commit is contained in:
sceptillion
2017-12-18 14:13:23 -08:00
parent f70d7efa66
commit 3b992d3ad3
10 changed files with 1167 additions and 2056 deletions
+2 -2
View File
@@ -470,11 +470,11 @@ sub_8107208: @ 8107208
ldrb r0, [r4, 0x10]
movs r1, 0x1
adds r2, r3, 0
bl sub_80048BC
bl SetWindowAttribute
ldrb r0, [r4, 0x10]
movs r1, 0x2
adds r2, r5, 0
bl sub_80048BC
bl SetWindowAttribute
pop {r4,r5}
pop {r0}
bx r0
+3 -3
View File
@@ -7458,7 +7458,7 @@ _081061F0:
add r2, r9
adds r0, r4, 0
movs r1, 0x2
bl sub_80048BC
bl SetWindowAttribute
ldr r0, [r5]
adds r0, 0x4A
ldrb r0, [r0]
@@ -7508,7 +7508,7 @@ _08106246:
add r2, r9
adds r0, r4, 0
movs r1, 0x2
bl sub_80048BC
bl SetWindowAttribute
ldr r0, [r5]
adds r0, 0x4A
adds r0, r6
@@ -7656,7 +7656,7 @@ _081062B4:
add r2, r9
adds r0, r4, 0
movs r1, 0x2
bl sub_80048BC
bl SetWindowAttribute
ldr r0, [r7]
adds r0, 0x54
ldrb r0, [r0]
-2039
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -41,7 +41,7 @@ _08005066:
beq _080050FA
mov r0, r9
ldrb r7, [r0]
ldr r1, _08005104 @ =gUnknown_3003E40
ldr r1, _08005104 @ =gWindowBgTilemapBuffers
mov r10, r1
lsls r2, r7, 2
mov r8, r2
@@ -98,7 +98,7 @@ _080050C2:
lsls r0, 24
cmp r0, 0
bne _080050FA
ldr r0, _08005104 @ =gUnknown_3003E40
ldr r0, _08005104 @ =gWindowBgTilemapBuffers
lsls r1, r7, 2
adds r5, r1, r0
ldr r1, [r5]
@@ -113,7 +113,7 @@ _080050FA:
b _0800512E
.align 2, 0
_08005100: .4byte gWindows
_08005104: .4byte gUnknown_3003E40
_08005104: .4byte gWindowBgTilemapBuffers
_08005108: .4byte 0x0000ffff
_0800510C: .4byte nullsub_7
_08005110:
-3
View File
@@ -1,8 +1,5 @@
.section .rodata
gUnknown_81EA144:: @ 81EA144
.incbin "baserom.gba", 0x1EA144, 0x8
gUnknown_81EA14C:: @ 81EA14C
.incbin "baserom.gba", 0x1EA14C, 0x100
+2
View File
@@ -27,6 +27,8 @@
#define CpuFastFill16(value, dest, size) CpuFastFill(((value) << 16) | (value), (dest), (size))
#define CpuFastFill8(value, dest, size) CpuFastFill(((value) << 24) | ((value) << 16) | ((value) << 8) | (value), (dest), (size))
#define CpuFastCopy(src, dest, size) CpuFastSet(src, dest, ((size)/(32/8) & 0x1FFFFF))
#define DmaSet(dmaNum, src, dest, control) \
+2 -1
View File
@@ -89,7 +89,7 @@ SECTIONS {
src/malloc.o(.text);
src/text_printer.o(.text);
asm/text_printer.o(.text);
asm/window.o(.text);
src/window.o(.text);
asm/blit.o(.text);
asm/window_8bpp.o(.text);
asm/text.o(.text);
@@ -396,6 +396,7 @@ SECTIONS {
src/bg.o(.rodata);
src/malloc.o(.rodata);
src/text_printer.o(.rodata);
src/window.o(.rodata);
data/data.o(.rodata);
src/m4a_tables.o(.rodata);
data/sound_data.o(.rodata);
+1152
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -5,10 +5,10 @@
gUnknown_3003E20: @ 3003E20
.space 0x10
gUnknown_3003E30: @ 3003E30
gWindowClearTile: @ 3003E30
.space 0x10
gUnknown_3003E40: @ 3003E40
gWindowBgTilemapBuffers: @ 3003E40
.space 0x10
gUnknown_3003E50: @ 3003E50
+1 -3
View File
@@ -30,9 +30,7 @@ gTrainerId: @ 2020000
.include "src/malloc.o"
.include "src/text_printer.o"
gWindows: @ 20204B4
.space 0x180
.include "src/window.o"
gUnknown_2020634: @ 2020634
.space 0x4