|
Action Replay CommandsThese codes tell the AR2 how to process the address and value that is specified in the rest of the code. Each Command and it's corresponding format are listed below. There are still some Commands that I don't know a whole lot about, so they will be listed with little detail. Write Commands8-bit Constant Write 0aaaaaaa 000000dd This command will constantly write the value specified by dd to the address specified by aaaaaaa. 16-bit Constant Write 1aaaaaaa 0000dddd This command will constantly write the value specified by dddd to the address specified by aaaaaaa. 32-bit Constant Write 2aaaaaaa dddddddd This command will constantly write the value specified by dddddddd to the address specified by aaaaaaa. Increment/Decrement Commands8-bit Increment 301000nn aaaaaaaa This command adds the value specified by nn to the value stored at the address aaaaaaaa. 8-bit Decrement 302000nn aaaaaaaa This command subtracts the value specified by nn to the value stored at the address aaaaaaaa. 16-bit Increment 3030nnnn aaaaaaaa This command adds the value specified by nnnn to the value stored at the address aaaaaaaa. 16-bit Decrement 3040nnnn aaaaaaaa This command subtracts the value specified by nnnn to the value stored at the address aaaaaaaa. 32-bit Increment 30500000 aaaaaaaa This command adds the value specified by nnnnnnnn to the value stored at the address aaaaaaaa. 32-bit Decrement 30600000 aaaaaaaa This command subtracts the value specified by nnnnnnnn to the value stored at the address aaaaaaaa. Test Commands16-bit Equal Daaaaaaa 0000dddd Only when the value at the address specified by aaaaaaa is equal to the value specified by dddd will the next line of code be executed. 16-bit Not Equal Daaaaaaa 0010dddd Only when the value at the address specified by aaaaaaa is not equal to the value specified by dddd will the next line of code be executed. 16-bit Less Than Daaaaaaa 0020dddd Only when the value at the address specified by aaaaaaa is less than the value specified by dddd will the next line of code be executed. 16-bit Greater Than Daaaaaaa 0030dddd Only when the value at the address specified by aaaaaaa is greater than the value specified by dddd will the next line of code be executed. 16-bit Equal : Multiple Skip Ennndddd 0aaaaaaa Only when the value at the address specified by aaaaaaa is equal to the value specified by dddd will the next nnn lines of code be executed. Otherwise, they will be skipped. 16-bit Not Equal : Multiple Skip Ennndddd 1aaaaaaa Only when the value at the address specified by aaaaaaa is not equal to the value specified by dddd will the next nnn lines of code be executed. Otherwise, they will be skipped. 16-bit Less Than : Multiple Skip Ennndddd 2aaaaaaa Only when the value at the address specified by aaaaaaa is less than the value specified by dddd will the next nnn lines of code be executed. Otherwise, they will be skipped. 16-bit Greater Than : Multiple Skip Ennndddd 3aaaaaaa Only when the value at the address specified by aaaaaaa is greater than the value specified by dddd will the next nnn lines of code be executed. Otherwise, they will be skipped. Miscellaneous CommandsCopy Bytes (AR2 v2.0 or higher) 5aaaaaaa nnnnnnnn
a = Address to copy from 32-bit Multi-Address Write 4aaaaaaa xxxxyyyy Starting with the address specified by aaaaaaa, this code will write to xxxx addresses. The next address is determined by incrementing the current address by (yyyy * 4). The value specified by dddddddd is written to each calculated address. Untested Commands
Please send any additional information for this section to me at hellion00@comcast.net. |