mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
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
|
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
|
; 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_PATCH_LIST_PART_TERMINATOR EQU $ff
|
||||||
|
|
||||||
|
SERIAL_PREAMBLE_LENGTH EQU 6
|
||||||
|
@ -632,7 +632,7 @@ FixDataForLinkTransfer:
|
|||||||
Link_PrepPartyData_Gen1:
|
Link_PrepPartyData_Gen1:
|
||||||
ld de, wLinkData
|
ld de, wLinkData
|
||||||
ld a, SERIAL_PREAMBLE_BYTE
|
ld a, SERIAL_PREAMBLE_BYTE
|
||||||
ld b, PARTY_LENGTH
|
ld b, SERIAL_PREAMBLE_LENGTH
|
||||||
.loop1
|
.loop1
|
||||||
ld [de], a
|
ld [de], a
|
||||||
inc de
|
inc de
|
||||||
@ -798,7 +798,7 @@ Link_PrepPartyData_Gen1:
|
|||||||
Link_PrepPartyData_Gen2:
|
Link_PrepPartyData_Gen2:
|
||||||
ld de, wLinkData
|
ld de, wLinkData
|
||||||
ld a, SERIAL_PREAMBLE_BYTE
|
ld a, SERIAL_PREAMBLE_BYTE
|
||||||
ld b, PARTY_LENGTH
|
ld b, SERIAL_PREAMBLE_LENGTH
|
||||||
.loop1
|
.loop1
|
||||||
ld [de], a
|
ld [de], a
|
||||||
inc de
|
inc de
|
||||||
|
Loading…
Reference in New Issue
Block a user