Difference between revisions of "Tranfer AI Ability Data and Set Defend flag (00199498)"
Jump to navigation
Jump to search
m (Dokurider moved page 00199498 - 001994f4 to Tranfer AI Ability Data and Set Defend flag (00199498): Renaming and adding new documentation) |
|||
Line 1: | Line 1: | ||
− | + | Tranfer Skillset CT Ability ID and Set Defend flag | |
− | + | ||
00199498: 3c02801a lui r2,0x801a | 00199498: 3c02801a lui r2,0x801a | ||
− | 0019949c: 904201f1 lbu r2,0x01f1(r2) | + | 0019949c: 904201f1 lbu r2,0x01f1(r2) Load isAbility Decided (Can be 0-2) |
001994a0: 3c03801a lui r3,0x801a | 001994a0: 3c03801a lui r3,0x801a | ||
− | 001994a4: 8c630bbc lw r3,0x0bbc(r3) | + | 001994a4: 8c630bbc lw r3,0x0bbc(r3) Load Acting Unit's Data Pointer |
001994a8: 3c01801a lui r1,0x801a | 001994a8: 3c01801a lui r1,0x801a | ||
− | 001994ac: a0200bc0 sb r0,0x0bc0(r1) | + | 001994ac: a0200bc0 sb r0,0x0bc0(r1) Clear ? |
001994b0: 00021080 sll r2,r2,0x02 | 001994b0: 00021080 sll r2,r2,0x02 | ||
001994b4: 3c01801a lui r1,0x801a | 001994b4: 3c01801a lui r1,0x801a | ||
− | 001994b8: 00220821 addu r1,r1,r2 | + | 001994b8: 00220821 addu r1,r1,r2 |
− | 001994bc: 8c220088 lw r2,0x0088(r1) | + | 001994bc: 8c220088 lw r2,0x0088(r1) Load Skillset,CT and Ability ID (from 0x0cc4) |
− | 001994c0: 94630016 lhu r3,0x0016(r3) | + | 001994c0: 94630016 lhu r3,0x0016(r3) Load Support |
001994c4: 3c01801a lui r1,0x801a | 001994c4: 3c01801a lui r1,0x801a | ||
− | 001994c8: ac220bc4 sw r2,0x0bc4(r1) | + | 001994c8: ac220bc4 sw r2,0x0bc4(r1) Save Skillset,CT and Ability ID |
001994cc: 340201df ori r2,r0,0x01df | 001994cc: 340201df ori r2,r0,0x01df | ||
− | 001994d0: 14620005 bne r3,r2,0x001994e8 | + | 001994d0: 14620005 bne r3,r2,0x001994e8 Clear ? and exit if Defend (Support) |
001994d4: 34020002 ori r2,r0,0x0002 | 001994d4: 34020002 ori r2,r0,0x0002 | ||
001994d8: 3c01801a lui r1,0x801a | 001994d8: 3c01801a lui r1,0x801a | ||
− | 001994dc: a0220bc9 sb r2,0x0bc9(r1) | + | 001994dc: a0220bc9 sb r2,0x0bc9(r1) Save 2 to ? (Use wait command to wait)? |
001994e0: 0806653c j 0x001994f0 | 001994e0: 0806653c j 0x001994f0 | ||
001994e4: 00000000 nop | 001994e4: 00000000 nop | ||
001994e8: 3c01801a lui r1,0x801a | 001994e8: 3c01801a lui r1,0x801a | ||
− | 001994ec: a0200bc9 sb r0,0x0bc9(r1) | + | 001994ec: a0200bc9 sb r0,0x0bc9(r1) Clear ? (Use Defend command to wait)? |
001994f0: 03e00008 jr r31 | 001994f0: 03e00008 jr r31 | ||
001994f4: 00000000 nop | 001994f4: 00000000 nop | ||
− |
Revision as of 01:05, 9 March 2017
Tranfer Skillset CT Ability ID and Set Defend flag
00199498: 3c02801a lui r2,0x801a 0019949c: 904201f1 lbu r2,0x01f1(r2) Load isAbility Decided (Can be 0-2) 001994a0: 3c03801a lui r3,0x801a 001994a4: 8c630bbc lw r3,0x0bbc(r3) Load Acting Unit's Data Pointer 001994a8: 3c01801a lui r1,0x801a 001994ac: a0200bc0 sb r0,0x0bc0(r1) Clear ? 001994b0: 00021080 sll r2,r2,0x02 001994b4: 3c01801a lui r1,0x801a 001994b8: 00220821 addu r1,r1,r2 001994bc: 8c220088 lw r2,0x0088(r1) Load Skillset,CT and Ability ID (from 0x0cc4) 001994c0: 94630016 lhu r3,0x0016(r3) Load Support 001994c4: 3c01801a lui r1,0x801a 001994c8: ac220bc4 sw r2,0x0bc4(r1) Save Skillset,CT and Ability ID 001994cc: 340201df ori r2,r0,0x01df 001994d0: 14620005 bne r3,r2,0x001994e8 Clear ? and exit if Defend (Support) 001994d4: 34020002 ori r2,r0,0x0002 001994d8: 3c01801a lui r1,0x801a 001994dc: a0220bc9 sb r2,0x0bc9(r1) Save 2 to ? (Use wait command to wait)? 001994e0: 0806653c j 0x001994f0 001994e4: 00000000 nop 001994e8: 3c01801a lui r1,0x801a 001994ec: a0200bc9 sb r0,0x0bc9(r1) Clear ? (Use Defend command to wait)? 001994f0: 03e00008 jr r31 001994f4: 00000000 nop