summaryrefslogtreecommitdiff
path: root/home/serial.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-02-22 12:39:49 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2021-02-22 12:39:49 -0500
commitbb88e045d10b704bfb6e86f142975016b3329eed (patch)
tree34bb66d1274f7a609566dd8e4c1d0b97aae2f45d /home/serial.asm
parent95100227ec03465c090e8f21bac3ec5839f8a21d (diff)
Identify link sync buffers, separate from link action bytes
Diffstat (limited to 'home/serial.asm')
-rw-r--r--home/serial.asm9
1 files changed, 4 insertions, 5 deletions
diff --git a/home/serial.asm b/home/serial.asm
index 808111d5..47494a85 100644
--- a/home/serial.asm
+++ b/home/serial.asm
@@ -244,11 +244,10 @@ SerialDisconnected::
ld [wLinkTimeoutFrames + 1], a
ret
-; This is used to exchange the button press and selected menu item on the link menu.
-; The data is sent thrice and read twice to increase reliability.
-Serial_ExchangeLinkMenuSelection::
- ld hl, wPlayerLinkAction
- ld de, wOtherPlayerLinkMode
+; This is used to check that both players entered the same Cable Club room.
+Serial_ExchangeSyncBytes::
+ ld hl, wLinkPlayerSyncBuffer
+ ld de, wLinkReceivedSyncBuffer
ld c, 2
ld a, TRUE
ldh [hSerialIgnoringInitialData], a