Remote control Pikachu: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (Text replacement - "(\bld(?:|i|l|d|h) (?:.+, ?)?)\((.+)\)" to "$1[$2]") |
No edit summary |
||
Line 115: | Line 115: | ||
3. Change D36D/D36E (map script pointer) to point to the little-endian (smaller byte first) address where you wrote your code. For example, if you wrote your code at DB7D the values would be 7D and DB. |
3. Change D36D/D36E (map script pointer) to point to the little-endian (smaller byte first) address where you wrote your code. For example, if you wrote your code at DB7D the values would be 7D and DB. |
||
===Notes=== |
|||
This code reads from FFB3; a joypad address in the HRAM. |
|||
The value in FFB3 is determined by the combination of the bits set when setting buttons, for example, moving down enables bit 0x7 (+0x80 to the value). |
|||
Bit 0x7/+0x80 - Down |
|||
Bit 0x6/+0x40 - Up |
|||
Bit 0x5/+0x20 - Left |
|||
Bit 0x4/+0x10 - Right |
|||
Bit 0x3/+0x08 - Start |
|||
Bit 0x2/+0x04 - Select |
|||
Bit 0x1/+0x02 - B |
|||
Bit 0x0/+0x01 - A |
|||
==How to move Pikachu== |
==How to move Pikachu== |