Action Replay DS Button Mappings: Difference between revisions

From ProjectPokemon Wiki
Jump to navigation Jump to search
Line 79: Line 79:


:A4000130 ZZZZYYYY
:A4000130 ZZZZYYYY
:XXXXXXXX XXXXXXXX
:D2000000 00000000
For buttons that did not appear on the GBA(X/Y/touchscreen), the command is:
:92FFFFA8 ZZZZYYYY
:XXXXXXXX XXXXXXXX
:D2000000 00000000
If-not for the NDS-only buttons:
:A2FFFFA8 ZZZZYYYY
:XXXXXXXX XXXXXXXX
:XXXXXXXX XXXXXXXX
:D2000000 00000000
:D2000000 00000000
Line 86: Line 98:
* XXXXXXXX XXXXXXXX is the command to be executed when the button is pressed.
* XXXXXXXX XXXXXXXX is the command to be executed when the button is pressed.
* 9XXXXXXX ZZZZYYYY is the if command.
* 9XXXXXXX ZZZZYYYY is the if command.
* 94000130 is the buttons pressed variable for the Nintendo DS.
* 04000130 is the GBA-compatible buttons pressed variable for the Nintendo DS.
* 02FFFFA8 is the NDS-only buttons pressed variable for the Nintendo DS.
* D2000000 00000000 acts as an end if command in this case.
* D2000000 00000000 acts as an end if command in this case.



Revision as of 02:59, 19 September 2011

Name Binary Hexadecimal
NDS Not Folded 0111111111111111 7FFF
??? 1011111111111111 BFFF
Debug 1101111111111111 DFFF
??? 1110111111111111 EFFF
Y 1111011111111111 F7FF
X 1111101111111111 FBFF
L 1111110111111111 FDFF
R 1111111011111111 FEFF
Down 1111111101111111 FF7F
Up 1111111110111111 FFBF
Right 1111111111011111 FFDF
Left 1111111111101111 FFEF
Start 1111111111110111 FFF7
Select 1111111111111011 FFFB
B 1111111111111101 FFFD
A 1111111111111110 FFFE

Use in Action Replay DS

For Action Replay DS an if equal command would be:

94000130 ZZZZYYYY
XXXXXXXX XXXXXXXX
D2000000 00000000

An if not equal command would be:

A4000130 ZZZZYYYY
XXXXXXXX XXXXXXXX
D2000000 00000000

For buttons that did not appear on the GBA(X/Y/touchscreen), the command is:

92FFFFA8 ZZZZYYYY
XXXXXXXX XXXXXXXX
D2000000 00000000

If-not for the NDS-only buttons:

A2FFFFA8 ZZZZYYYY
XXXXXXXX XXXXXXXX
D2000000 00000000

Notes

  • ZZZZ is the button in hexadecimal.
  • XXXXXXXX XXXXXXXX is the command to be executed when the button is pressed.
  • 9XXXXXXX ZZZZYYYY is the if command.
  • 04000130 is the GBA-compatible buttons pressed variable for the Nintendo DS.
  • 02FFFFA8 is the NDS-only buttons pressed variable for the Nintendo DS.
  • D2000000 00000000 acts as an end if command in this case.

Example Uses

For a code to press L to be activated the code would be:

94000130 FDFF0000
CODE
D2000000 00000000

To combine codes use bitwise AND. L & R = FDFF & FEFF = FCFF. The code for pressing L and R would be:

94000130 FCFF0000
CODE
D2000000 00000000

References