Difference between revisions of "Transfer Considered Action Data to AI"
Jump to navigation
Jump to search
m |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | BATTLE.BIN : Transfer Considered Action Data to AI (Preserve data - will be restored after AI choice/simulation) | |
− | Transfer Considered Action Data to AI 0018e5e4: 27bdffe8 addiu r29,r29, | + | ------------------------------------------------------------------------------------------------------- |
− | 0018e5e8: 34020001 ori r2,r0,0x0001 | + | Parameters : Nothing |
− | 0018e5ec: 3c048019 lui r4,0x8019 | + | |
− | 0018e5f0: 2484389c addiu r4,r4,0x389c | + | Returns : Nothing |
− | 0018e5f4: 3c058019 lui r5,0x8019 | + | |
− | 0018e5f8: 24a53d24 addiu r5,r5,0x3d24 | + | - Set AI action Data at 0x80193d24 (transfer data from 0x8019389c) - 0x1e bytes |
− | 0018e5fc: afbf0010 sw r31,0x0010(r29) | + | - Set Action State to 0x01 |
− | 0018e600: 3c018019 lui r1,0x8019 | + | - Nullify 0x801938bc (word) |
− | 0018e604: ac22f5fc sw r2,-0x0a04(r1) | + | --------------------------------------------------------------------------------------------------------- |
− | 0018e608: 3c018019 lui r1,0x8019 | + | 0018e5e4: 27bdffe8 addiu r29,r29,-0x0018 |
− | 0018e60c: ac2038bc sw r0,0x38bc(r1) | + | 0018e5e8: 34020001 ori r2,r0,0x0001 |{{f/std|<nowiki>r2 = 1</nowiki>}} |
− | 0018e610: 0c017895 jal 0x0005e254 | + | 0018e5ec: 3c048019 lui r4,0x8019 | |
− | 0018e614: 3406001e ori r6,r0,0x001e | + | 0018e5f0: 2484389c addiu r4,r4,0x389c |{{f/adr|Attacker's Facing Pointer}} {{f/std| 8019389c}} |
+ | 0018e5f4: 3c058019 lui r5,0x8019 | | ||
+ | 0018e5f8: 24a53d24 addiu r5,r5,0x3d24 |{{f/adr|Attacker's AI Data Pointer}} {{f/std| 80193d24}} | ||
+ | 0018e5fc: afbf0010 sw r31,0x0010(r29) | | ||
+ | 0018e600: 3c018019 lui r1,0x8019 | | ||
+ | 0018e604: ac22f5fc sw r2,-0x0a04(r1) |{{f/store|Set Action State to 0x01}} {{f/std| 8018f5fc}} | ||
+ | 0018e608: 3c018019 lui r1,0x8019 | | ||
+ | 0018e60c: ac2038bc sw r0,0x38bc(r1) |{{f/store|Nullify 0x801938bc}} {{f/std| 801938bc}} | ||
+ | 0018e610: 0c017895 jal 0x0005e254 |{{f/jal|Store X Byte into Y|Store X Byte into Y}} {{f/std|Copy data from 0x8019389c - 38b9 to 0x80193d24 - 3d41}} | ||
+ | 0018e614: 3406001e ori r6,r0,0x001e |{{f/std|<nowiki>Limit = 0x1e</nowiki>}} | ||
0018e618: 8fbf0010 lw r31,0x0010(r29) | 0018e618: 8fbf0010 lw r31,0x0010(r29) | ||
0018e61c: 27bd0018 addiu r29,r29,0x0018 | 0018e61c: 27bd0018 addiu r29,r29,0x0018 | ||
0018e620: 03e00008 jr r31 | 0018e620: 03e00008 jr r31 | ||
− | 0018e624: 00000000 nop | + | 0018e624: 00000000 nop |
+ | === Return Location === | ||
+ | '''BATTLE.BIN''' | ||
+ | 00193ff0: [[Main_AI_action_setup]] |
Latest revision as of 20:15, 28 June 2024
BATTLE.BIN : Transfer Considered Action Data to AI (Preserve data - will be restored after AI choice/simulation) ------------------------------------------------------------------------------------------------------- Parameters : Nothing Returns : Nothing - Set AI action Data at 0x80193d24 (transfer data from 0x8019389c) - 0x1e bytes - Set Action State to 0x01 - Nullify 0x801938bc (word) --------------------------------------------------------------------------------------------------------- 0018e5e4: 27bdffe8 addiu r29,r29,-0x0018 0018e5e8: 34020001 ori r2,r0,0x0001 |r2 = 1 0018e5ec: 3c048019 lui r4,0x8019 | 0018e5f0: 2484389c addiu r4,r4,0x389c |Attacker's Facing Pointer 8019389c 0018e5f4: 3c058019 lui r5,0x8019 | 0018e5f8: 24a53d24 addiu r5,r5,0x3d24 |Attacker's AI Data Pointer 80193d24 0018e5fc: afbf0010 sw r31,0x0010(r29) | 0018e600: 3c018019 lui r1,0x8019 | 0018e604: ac22f5fc sw r2,-0x0a04(r1) |Set Action State to 0x01 8018f5fc 0018e608: 3c018019 lui r1,0x8019 | 0018e60c: ac2038bc sw r0,0x38bc(r1) |Nullify 0x801938bc 801938bc 0018e610: 0c017895 jal 0x0005e254 |-->Store X Byte into Y Copy data from 0x8019389c - 38b9 to 0x80193d24 - 3d41 0018e614: 3406001e ori r6,r0,0x001e |Limit = 0x1e 0018e618: 8fbf0010 lw r31,0x0010(r29) 0018e61c: 27bd0018 addiu r29,r29,0x0018 0018e620: 03e00008 jr r31 0018e624: 00000000 nop
Return Location
BATTLE.BIN 00193ff0: Main_AI_action_setup