ref: 507fcbd26979cb79fcb9b75a18b85f4c20487a63
parent: 3fdb8a0d8995746d5605136ece384516338489b0
author: YamaArashi <shadow962@live.com>
date: Fri Feb 6 22:04:50 EST 2015
Fix typo in name
--- a/engine/cable_club.asm
+++ b/engine/cable_club.asm
@@ -523,7 +523,7 @@
ld [wCurrentMenuItem], a
ld [wTradingWhichPlayerMon], a
ld [wSerialExchangeNybbleSendData], a
- call Serial_PrintWaitingTextAndSyncAndExchangeByte
+ call Serial_PrintWaitingTextAndSyncAndExchangeNybble
ld a, [wSerialSyncAndExchangeNybbleReceiveData]
cp $f
jp z, CallCurrentTradeCenterFunction ; go back to the beginning of the trade selection menu if the other person cancelled
@@ -570,7 +570,7 @@
Coorda 1, 16
ld a, $f
ld [wSerialExchangeNybbleSendData], a
- call Serial_PrintWaitingTextAndSyncAndExchangeByte
+ call Serial_PrintWaitingTextAndSyncAndExchangeNybble
ld a, [wSerialSyncAndExchangeNybbleReceiveData]
cp $f ; did the other person choose Cancel too?
jr nz, .cancelMenuItem_Loop
@@ -733,12 +733,12 @@
hlCoord 1, 14
ld de, TradeCanceled
call PlaceString
- call Serial_PrintWaitingTextAndSyncAndExchangeByte
+ call Serial_PrintWaitingTextAndSyncAndExchangeNybble
jp .tradeCancelled
.tradeConfirmed
ld a, $2
ld [wSerialExchangeNybbleSendData], a
- call Serial_PrintWaitingTextAndSyncAndExchangeByte
+ call Serial_PrintWaitingTextAndSyncAndExchangeNybble
ld a, [wSerialSyncAndExchangeNybbleReceiveData]
dec a ; did the other person cancel?
jr nz, .doTrade
@@ -848,7 +848,7 @@
callab TryEvolvingMon
call ClearScreen
call LoadTrainerInfoTextBoxTiles
- call Serial_PrintWaitingTextAndSyncAndExchangeByte
+ call Serial_PrintWaitingTextAndSyncAndExchangeNybble
ld c, 40
call DelayFrames
hlCoord 0, 12
--- a/home/serial.asm
+++ b/home/serial.asm
@@ -223,7 +223,7 @@
jr nz, .loop
ret
-Serial_PrintWaitingTextAndSyncAndExchangeByte:: ; 226e (0:226e)
+Serial_PrintWaitingTextAndSyncAndExchangeNybble:: ; 226e (0:226e)
call SaveScreenTilesToBuffer1
callab PrintWaitingText
call Serial_SyncAndExchangeNybble
@@ -269,7 +269,6 @@
ld [wSerialSyncAndExchangeNybbleReceiveData], a
ret
-; exchange one byte with value of $f or less
Serial_ExchangeNybble:: ; 22c3 (0:22c3)
call .doExchange
ld a, [wSerialExchangeNybbleSendData]