ref: ddf1163a2135f23ec3edf51086f8cb5f83147b21
parent: b3bd6823660a9d5e73b7293df9461bb9f08fa989
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Jul 6 11:49:01 EDT 2020
Define SERIAL_PREAMBLE_LENGTH
--- a/constants/serial_constants.asm
+++ b/constants/serial_constants.asm
@@ -28,3 +28,5 @@
SERIAL_NO_DATA_BYTE EQU $fe
; signals the end of one part of a patch list (there are two parts) for player/enemy party data
SERIAL_PATCH_LIST_PART_TERMINATOR EQU $ff
+
+SERIAL_PREAMBLE_LENGTH EQU 6
--- a/engine/link/link.asm
+++ b/engine/link/link.asm
@@ -632,7 +632,7 @@
Link_PrepPartyData_Gen1:
ld de, wLinkData
ld a, SERIAL_PREAMBLE_BYTE
- ld b, PARTY_LENGTH
+ ld b, SERIAL_PREAMBLE_LENGTH
.loop1
ld [de], a
inc de
@@ -798,7 +798,7 @@
Link_PrepPartyData_Gen2:
ld de, wLinkData
ld a, SERIAL_PREAMBLE_BYTE
- ld b, PARTY_LENGTH
+ ld b, SERIAL_PREAMBLE_LENGTH
.loop1
ld [de], a
inc de