Decompile osAiGetLength

This commit is contained in:
Ryan Myers
2021-09-21 22:20:04 -04:00
parent cbcab5e384
commit aeafdc3a35
4 changed files with 7 additions and 4 deletions
@@ -31,7 +31,7 @@ glabel func_80002C00
/* 003874 80002C74 0C032180 */ jal osAiSetFrequency
/* 003878 80002C78 24445622 */ addiu $a0, $v0, 0x5622
.L80002C7C:
/* 00387C 80002C7C 0C032388 */ jal func_800C8E20
/* 00387C 80002C7C 0C032388 */ jal osAiGetLength
/* 003880 80002C80 00000000 */ nop
/* 003884 80002C84 3C188012 */ lui $t8, %hi(D_8011962C) # $t8, 0x8012
/* 003888 80002C88 8F18962C */ lw $t8, %lo(D_8011962C)($t8)
@@ -1,7 +1,7 @@
glabel func_80002DF8
/* 0039F8 80002DF8 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 0039FC 80002DFC AFBF0014 */ sw $ra, 0x14($sp)
/* 003A00 80002E00 0C032388 */ jal func_800C8E20
/* 003A00 80002E00 0C032388 */ jal osAiGetLength
/* 003A04 80002E04 AFA40018 */ sw $a0, 0x18($sp)
/* 003A08 80002E08 00027082 */ srl $t6, $v0, 2
/* 003A0C 80002E0C 15C00006 */ bnez $t6, .L80002E28
@@ -1,4 +1,4 @@
glabel func_800C8E20
glabel osAiGetLength
/* 0C9A20 800C8E20 3C0EA450 */ lui $t6, 0xa450
/* 0C9A24 800C8E24 03E00008 */ jr $ra
/* 0C9A28 800C8E28 8DC20004 */ lw $v0, 4($t6)
@@ -3,6 +3,7 @@
#include "types.h"
#include "macros.h"
#include "PR/rcp.h"
// This probably does not belong here. Please move it to the appropriate place!
#define EQPOWER_LENGTH 128
@@ -31,4 +32,6 @@ s16 eqpower[ EQPOWER_LENGTH ] = {
405, 0
};
GLOBAL_ASM("lib/asm/non_matchings/unknown_0C9A20/func_800C8E20.s")
u32 osAiGetLength(void) {
return IO_READ(AI_LEN_REG);
}