Define SERIAL_PREAMBLE_LENGTH

This commit is contained in:
Rangi 2020-07-06 15:49:01 -04:00
parent b3bd682366
commit ddf1163a21
2 changed files with 4 additions and 2 deletions

View File

@ -28,3 +28,5 @@ SERIAL_PREAMBLE_BYTE EQU $fd
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

View File

@ -632,7 +632,7 @@ FixDataForLinkTransfer:
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_Gen1:
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