summaryrefslogtreecommitdiff
path: root/home/serial.asm
diff options
context:
space:
mode:
authorvulcandth <vulcandth@gmail.com>2022-03-14 16:03:15 -0500
committerGitHub <noreply@github.com>2022-03-14 17:03:15 -0400
commit3d58fb95569be74c6c229118a425fa22628f1dc3 (patch)
tree5ddb4fbcefce4610963397d82cef2fb3b470e956 /home/serial.asm
parentfddd1c132bd526cc9b15c14896becfc30288a049 (diff)
Build the Virtual Console patches with `make gold_vc` and `make silver_vc` (#74)
Diffstat (limited to 'home/serial.asm')
-rw-r--r--home/serial.asm14
1 files changed, 14 insertions, 0 deletions
diff --git a/home/serial.asm b/home/serial.asm
index 47494a85..177c2b8e 100644
--- a/home/serial.asm
+++ b/home/serial.asm
@@ -282,6 +282,7 @@ Serial_SyncAndExchangeNybble:: ; unreferenced
jp WaitLinkTransfer ; pointless
WaitLinkTransfer::
+ vc_hook send_send_buf2
ld a, $ff
ld [wOtherPlayerLinkAction], a
.loop
@@ -309,14 +310,26 @@ WaitLinkTransfer::
inc a
jr z, .loop
+ vc_patch Network10
+if DEF(_GOLD_VC) || DEF(_SILVER_VC)
+ ld b, 26
+else
ld b, 10
+endc
+ vc_patch_end
.receive
call DelayFrame
call LinkTransfer
dec b
jr nz, .receive
+ vc_patch Network11
+if DEF(_GOLD_VC) || DEF(_SILVER_VC)
+ ld b, 26
+else
ld b, 10
+endc
+ vc_patch_end
.acknowledge
call DelayFrame
call LinkDataReceived
@@ -325,6 +338,7 @@ WaitLinkTransfer::
ld a, [wOtherPlayerLinkAction]
ld [wOtherPlayerLinkMode], a
+ vc_hook send_send_buf2_ret
ret
LinkTransfer::