Introduction
Commands
Addresses
Values
Encryption
Joker Commands
Examples
Codes
Thanks
Links
Bonus
PS2DIS

Action Replay Commands

These 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 Commands

8-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 Commands

8-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
nnnnnnnn 00000000

This command adds the value specified by nnnnnnnn to the value stored at the address aaaaaaaa.


32-bit Decrement

30600000 aaaaaaaa
nnnnnnnn 00000000

This command subtracts the value specified by nnnnnnnn to the value stored at the address aaaaaaaa.


Test Commands

16-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 Commands

Copy Bytes (AR2 v2.0 or higher)

5aaaaaaa nnnnnnnn
bbbbbbbb 00000000

a = Address to copy from
b = Address to copy to
n = Number of bytes to copy


32-bit Multi-Address Write

4aaaaaaa xxxxyyyy
dddddddd 00000000

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

  • 3000nnnn dddddddd aaaaaaaax(n-1) : 32-bit Multiple Address Write?
  • 8aaaaaaa bbbbbbbb cccccccc 00000000 : Master Command
  • Aaaaaaaa dddddddd : 32-bit Write Once?
  • B0000000 nnnnnnnn : Timer Command
  • Caaaaaaa dddddddd : 32-bit Equal?
  • Faaaaaaa bbbbbbbb : Master Command

Please send any additional information for this section to me at hellion00@comcast.net.