Difference between revisions of "Initialize some AI Data (mount, base hit %)"
Jump to navigation
Jump to search
(Created page with "<font face='Courier New'> 00195d94: 3c02801a lui r2,0x801a 00195d98: 90420d7b lbu r2,0x0d7b(r2) load return from 194e50 00195d9c: 27bdffe0 addiu r29,r29,0xffe0 00195da...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | '''BATTLE.BIN''' : - Initialize some AI Data (mount, base hit %) | |
− | + | ------------------------------------------------------------------------------------------ | |
− | + | Parameter : r4 = Pointer to Some AI data TABLE (see return location) | |
− | + | Returns nothing | |
− | + | ------------------------------------------------------------------------------------------ | |
− | + | Return : Return nothing | |
− | + | 00195f6c: 24028001 addiu r2,r0,0x8001 | | |
− | + | 00195f70: a482001e sh r2,0x001e(r4) |{{f/store|Store 0x8001 at Pointer 0x001e}} | |
− | + | 00195f74: 34020005 ori r2,r0,0x0005 |{{f/std|<nowiki>r2 = 5</nowiki>}} | |
− | + | 00195f78: a080001c sb r0,0x001c(r4) |{{f/store|Reset Pointer 0x001c}} {{f/std|Initialize Mount Info? (I have no idea what this is supposed to represent)}} | |
− | + | 00195f7c: a080001d sb r0,0x001d(r4) |{{f/store|Reset Pointer 0x001d}} {{f/std|Initialize Base Hit%}} | |
− | + | 00195f80: a0820003 sb r2,0x0003(r4) |{{f/store|Store 0x05 at Pointer 0x0003}} | |
− | + | 00195f84: 03e00008 jr r31 {{f/jump|Jump to Address}} | |
− | + | 00195f88: a0800001 sb r0,0x0001(r4) |{{f/store|Initialize Pointer + 0x01}} | |
− | + | ===Return locations=== | |
− | + | '''BATTLE.BIN''' | |
− | + | 00195e0c: [[AI_Initial_Targeting_Selection]] 8019f3c4 + 0x0054 to 0x134 (step 0x20) | |
− | + | 00195e24: [[AI_Initial_Targeting_Selection]] 8019f3c4 + 0x0014 | |
− | + | 00195e2c: [[AI_Initial_Targeting_Selection]] 8019f3c4 + 0x0034 | |
− | + | 00195e34: [[AI_Initial_Targeting_Selection]] 8019f3c4 + 0x0154 | |
− | + | 00195e3c: [[AI_Initial_Targeting_Selection]] 8019f3c4 + 0x17fc | |
− | + | 00197098: [[Compare_Set_Highest_Unit_Target_Priority_(00196fc4)]] 8019f3c4 + 0x0034 | |
− | + | 0019ae48: [[0019ae30_-_0019ae54]] 8019f3c4 + 0x17fc | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 12:05, 8 April 2024
BATTLE.BIN : - Initialize some AI Data (mount, base hit %) ------------------------------------------------------------------------------------------ Parameter : r4 = Pointer to Some AI data TABLE (see return location) Returns nothing ------------------------------------------------------------------------------------------ Return : Return nothing 00195f6c: 24028001 addiu r2,r0,0x8001 | 00195f70: a482001e sh r2,0x001e(r4) |Store 0x8001 at Pointer 0x001e 00195f74: 34020005 ori r2,r0,0x0005 |r2 = 5 00195f78: a080001c sb r0,0x001c(r4) |Reset Pointer 0x001c Initialize Mount Info? (I have no idea what this is supposed to represent) 00195f7c: a080001d sb r0,0x001d(r4) |Reset Pointer 0x001d Initialize Base Hit% 00195f80: a0820003 sb r2,0x0003(r4) |Store 0x05 at Pointer 0x0003 00195f84: 03e00008 jr r31 >>Jump to Address 00195f88: a0800001 sb r0,0x0001(r4) |Initialize Pointer + 0x01
Return locations
BATTLE.BIN 00195e0c: AI_Initial_Targeting_Selection 8019f3c4 + 0x0054 to 0x134 (step 0x20) 00195e24: AI_Initial_Targeting_Selection 8019f3c4 + 0x0014 00195e2c: AI_Initial_Targeting_Selection 8019f3c4 + 0x0034 00195e34: AI_Initial_Targeting_Selection 8019f3c4 + 0x0154 00195e3c: AI_Initial_Targeting_Selection 8019f3c4 + 0x17fc 00197098: Compare_Set_Highest_Unit_Target_Priority_(00196fc4) 8019f3c4 + 0x0034 0019ae48: 0019ae30_-_0019ae54 8019f3c4 + 0x17fc