Remote control Pikachu: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
 
Line 119: Line 119:
This code reads from FFB3; a joypad address in the HRAM.
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 pressing buttons, for example, moving down enables bit 0x7 (+0x80 to the value).
The value in FFB3 is determined by the combination of the bits set when pressing buttons, for example, moving down enables bit 0x7 (+0x80 to the value). If one wanted to modify the code for an input with (for instance) down and left at the same time, FFB3 would read 0xA0 (0x80+0x20).
<pre>
<pre>
Bit 0x7/+0x80 - Down
Bit 0x7/+0x80 - Down