mirror of https://github.com/pret/pokecrystal.git
Define SERIAL_PREAMBLE_LENGTH
This commit is contained in:
parent
b3bd682366
commit
ddf1163a21
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue