diff options
| author | vulcandth <vulcandth@gmail.com> | 2022-03-26 21:05:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-26 22:05:06 -0400 |
| commit | fbaa5c9d4b48c000a52860a8392fc423c4e312f9 (patch) | |
| tree | 80c5d8b0458ab6a2c2f1995ed0addd1f6cb5570f /home | |
| parent | Refactor pkmncompress.c to use common.h (diff) | |
| download | pokeyellow-fbaa5c9d4b48c000a52860a8392fc423c4e312f9.tar.gz pokeyellow-fbaa5c9d4b48c000a52860a8392fc423c4e312f9.tar.xz pokeyellow-fbaa5c9d4b48c000a52860a8392fc423c4e312f9.zip | |
Build the Virtual Console patch with `make yellow_vc` (#80)
Diffstat (limited to 'home')
| -rw-r--r-- | home/pikachu_cries.asm | 1 | ||||
| -rw-r--r-- | home/serial.asm | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/home/pikachu_cries.asm b/home/pikachu_cries.asm index 84889ef9..58bf2bdb 100644 --- a/home/pikachu_cries.asm +++ b/home/pikachu_cries.asm @@ -1,4 +1,5 @@ PlayPikachuPCM:: + vc_hook PLAY_HACK ldh a, [hLoadedROMBank] push af ld a, b diff --git a/home/serial.asm b/home/serial.asm index ef914933..b4546fbd 100644 --- a/home/serial.asm +++ b/home/serial.asm @@ -233,6 +233,7 @@ Serial_PrintWaitingTextAndSyncAndExchangeNybble:: jp LoadScreenTilesFromBuffer1 Serial_SyncAndExchangeNybble:: + vc_hook send_send_buf2 ld a, $ff ld [wSerialExchangeNybbleReceiveData], a .loop1 @@ -256,13 +257,25 @@ Serial_SyncAndExchangeNybble:: ld a, [wSerialExchangeNybbleReceiveData] inc a jr z, .loop1 + vc_patch Network10 +IF DEF(_YELLOW_VC) + ld b, 26 +ELSE ld b, 10 +ENDC + vc_patch_end .loop2 call DelayFrame call Serial_ExchangeNybble dec b jr nz, .loop2 + vc_patch Network11 +IF DEF(_YELLOW_VC) + ld b, 26 +ELSE ld b, 10 +ENDC + vc_patch_end .loop3 call DelayFrame call Serial_SendZeroByte @@ -270,6 +283,7 @@ Serial_SyncAndExchangeNybble:: jr nz, .loop3 ld a, [wSerialExchangeNybbleReceiveData] ld [wSerialSyncAndExchangeNybbleReceiveData], a + vc_hook send_send_buf2_ret ret Serial_ExchangeNybble:: |
