Decompile aiSetReactionSpeed

This commit is contained in:
Ryan Dwyer
2019-10-19 15:08:10 +10:00
parent cbeb61a2c8
commit 0c9df3c82a
4 changed files with 12 additions and 19 deletions
+9 -16
View File
@@ -5537,22 +5537,15 @@ glabel ai010e
/**
* @cmd 0098
*/
GLOBAL_ASM(
glabel ai0098
/* f053bd4: 3c04800a */ lui $a0,0x800a
/* f053bd8: 24849fc0 */ addiu $a0,$a0,-24640
/* f053bdc: 8c8e0434 */ lw $t6,0x434($a0)
/* f053be0: 8c8f0438 */ lw $t7,0x438($a0)
/* f053be4: 8c990424 */ lw $t9,0x424($a0)
/* f053be8: 00001025 */ or $v0,$zero,$zero
/* f053bec: 01cf1821 */ addu $v1,$t6,$t7
/* f053bf0: 80780002 */ lb $t8,0x2($v1)
/* f053bf4: a3380003 */ sb $t8,0x3($t9)
/* f053bf8: 8c880438 */ lw $t0,0x438($a0)
/* f053bfc: 25090003 */ addiu $t1,$t0,0x3
/* f053c00: 03e00008 */ jr $ra
/* f053c04: ac890438 */ sw $t1,0x438($a0)
);
bool aiSetReactionSpeed(void)
{
s8 *cmd = g_Vars.ailist + g_Vars.aioffset;
g_Vars.chrdata->speedrating = cmd[2];
g_Vars.aioffset += 3;
return false;
}
/**
* @cmd 0099
+1 -1
View File
@@ -154,7 +154,7 @@
/*0x0095*/ bool aiSetChrNum(void);
/*0x0096*/ bool ai0096(void);
/*0x0097*/ bool ai0097(void);
/*0x0098*/ bool ai0098(void);
/*0x0098*/ bool aiSetReactionSpeed(void);
/*0x0099*/ bool ai0099(void);
/*0x009a*/ bool ai009a(void);
/*0x009b*/ bool ai009b(void);
+1 -1
View File
@@ -34,7 +34,7 @@ struct bitfielddata {
struct chrdata {
/*0x000*/ s16 chrnum;
/*0x002*/ u8 accuracyrating;
/*0x003*/ u8 speedrating;
/*0x003*/ s8 speedrating;
/*0x004*/ u16 firecount;
/*0x006*/ u8 headnum;
/*0x007*/ s8 actiontype;
+1 -1
View File
@@ -14105,7 +14105,7 @@ bool (*command_pointers[])(void) = {
/*0x0095*/ aiSetChrNum,
/*0x0096*/ ai0096,
/*0x0097*/ ai0097,
/*0x0098*/ ai0098,
/*0x0098*/ aiSetReactionSpeed,
/*0x0099*/ ai0099,
/*0x009a*/ ai009a,
/*0x009b*/ ai009b,