sub_81D1574
This commit is contained in:
parent
5162393c16
commit
7f7b182ca4
3 changed files with 36 additions and 38 deletions
|
@ -20697,44 +20697,8 @@ _081D156A:
|
||||||
.pool
|
.pool
|
||||||
thumb_func_end sub_81D1538
|
thumb_func_end sub_81D1538
|
||||||
|
|
||||||
thumb_func_start sub_81D1574
|
// MATCH CALL
|
||||||
sub_81D1574: @ 81D1574
|
.section .text.after.match.call
|
||||||
push {lr}
|
|
||||||
ldrb r0, [r0]
|
|
||||||
cmp r0, 0x5
|
|
||||||
bhi _081D15A4
|
|
||||||
lsls r0, 2
|
|
||||||
ldr r1, =_081D158C
|
|
||||||
adds r0, r1
|
|
||||||
ldr r0, [r0]
|
|
||||||
mov pc, r0
|
|
||||||
.pool
|
|
||||||
.align 2, 0
|
|
||||||
_081D158C:
|
|
||||||
.4byte _081D15A4
|
|
||||||
.4byte _081D15A8
|
|
||||||
.4byte _081D15AC
|
|
||||||
.4byte _081D15B4
|
|
||||||
.4byte _081D15B0
|
|
||||||
.4byte _081D15A8
|
|
||||||
_081D15A4:
|
|
||||||
movs r0, 0
|
|
||||||
b _081D15B6
|
|
||||||
_081D15A8:
|
|
||||||
movs r0, 0x1
|
|
||||||
b _081D15B6
|
|
||||||
_081D15AC:
|
|
||||||
movs r0, 0x2
|
|
||||||
b _081D15B6
|
|
||||||
_081D15B0:
|
|
||||||
movs r0, 0x3
|
|
||||||
b _081D15B6
|
|
||||||
_081D15B4:
|
|
||||||
movs r0, 0x4
|
|
||||||
_081D15B6:
|
|
||||||
pop {r1}
|
|
||||||
bx r1
|
|
||||||
thumb_func_end sub_81D1574
|
|
||||||
|
|
||||||
thumb_func_start sub_81D15BC
|
thumb_func_start sub_81D15BC
|
||||||
sub_81D15BC: @ 81D15BC
|
sub_81D15BC: @ 81D15BC
|
||||||
|
|
|
@ -264,6 +264,8 @@ SECTIONS {
|
||||||
src/pokemon_summary_screen.o(.text);
|
src/pokemon_summary_screen.o(.text);
|
||||||
asm/pokemon_summary_screen.o(.text);
|
asm/pokemon_summary_screen.o(.text);
|
||||||
asm/pokenav.o(.text);
|
asm/pokenav.o(.text);
|
||||||
|
src/match_call.o(.text);
|
||||||
|
asm/pokenav.o(.text.after.match.call);
|
||||||
src/rayquaza_scene.o(.text);
|
src/rayquaza_scene.o(.text);
|
||||||
src/walda_phrase.o(.text);
|
src/walda_phrase.o(.text);
|
||||||
asm/contest_link_81D9DE4.o(.text);
|
asm/contest_link_81D9DE4.o(.text);
|
||||||
|
|
32
src/match_call.c
Normal file
32
src/match_call.c
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
|
||||||
|
// Includes
|
||||||
|
#include "global.h"
|
||||||
|
|
||||||
|
// Static type declarations
|
||||||
|
|
||||||
|
// Static RAM declarations
|
||||||
|
|
||||||
|
// Static ROM declarations
|
||||||
|
|
||||||
|
// .rodata
|
||||||
|
|
||||||
|
// .text
|
||||||
|
|
||||||
|
u32 sub_81D1574(u8 *a)
|
||||||
|
{
|
||||||
|
switch (*a)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
|
case 1:
|
||||||
|
case 5:
|
||||||
|
return 1;
|
||||||
|
case 2:
|
||||||
|
return 2;
|
||||||
|
case 4:
|
||||||
|
return 3;
|
||||||
|
case 3:
|
||||||
|
return 4;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue