Skip to content

Commit 59fb2cc

Browse files
Update SGB_Command_Multiplayer.md (#352)
Co-authored-by: Eldred Habert <[email protected]>
1 parent 91af20d commit 59fb2cc

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/SGB_Command_Multiplayer.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,5 @@ Byte | Player \#
4545
$xD | 3
4646
$xC | 4
4747

48-
Next, read joypad state normally. When completed, set both P14 and P15
49-
back HIGH, this automatically increments the joypad number (or restarts
50-
counting once the last joypad is reached). Repeat the procedure until
51-
you have read out all two (or four) joypads.
52-
53-
If for whatever reason you want to increment the joypad number without
54-
reading the joypad state you only need to set P15 to LOW before setting
55-
it back to HIGH. Adjusting P14 does not affect whether or not the joypad
56-
number will advance, However, if you set P15 to LOW then HIGH then LOW
57-
again without bringing both P14 and P15 HIGH at any point, it cancels
58-
the increment until P15 is lowered again. There are games, such as
59-
Pokémon Yellow, which rely on this cancelling when detecting the SGB.
48+
Next, read joypad state normally.
49+
The next joypad is automatically selected when P15 goes from LOW (0) to HIGH (1) ([source](https://github.com/CasualPokePlayer/test-roms/blob/sgb-mlt-test/src/intro.asm)), so you can simply repeat reading the joypad state normally until all two (or four) joypads have been read out.

0 commit comments

Comments
 (0)