-
Notifications
You must be signed in to change notification settings - Fork 6
/
mainBPRS.asm
38 lines (32 loc) · 845 Bytes
/
mainBPRS.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.gba
.thumb
.open "BPRS.gba","build/rom_BPRS.gba", 0x08000000
//---------------------------------------------------
//08137EF0 l 00000100 PokeSum_PrintPageHeaderText
.org 0x08137F0C //0x08137D8C -> 8C 7D 13 08
.word PokeSum_PrintPageHeaderText_hook
//08134A08 l 0000036c Task_InputHandler_Info
.org 0x08134A08
Task_InputHandler_Info_hook:
.area 0x36C, 0xFF
push {r4,lr}
ldr r3, =New_Task_InputHandler_Info|1
bl bx_r3_Task_InputHandler_Info
pop {r4,pc}
bx_r3_Task_InputHandler_Info:
bx r3
.pool
.endarea
.align 4
.org insertinto
.importobj "build/linked.o"
.align 4
PokeSum_PrintPageHeaderText_hook:
ldr r3, = PokeSum_PrintPageHeaderText_new|1
bl bx_r3_PokeSum_PrintPageHeaderText
pop {r0}
bx r0
bx_r3_PokeSum_PrintPageHeaderText:
bx r3
.pool
.close