2019-11-08 21:03:08 +00:00
|
|
|
; wLinkMode
|
2017-12-11 17:20:01 +00:00
|
|
|
const_def
|
|
|
|
const LINK_NULL ; 0
|
|
|
|
const LINK_TIMECAPSULE ; 1
|
|
|
|
const LINK_TRADECENTER ; 2
|
|
|
|
const LINK_COLOSSEUM ; 3
|
|
|
|
const LINK_MOBILE ; 4
|
|
|
|
|
2018-01-19 19:49:43 +00:00
|
|
|
; hSerialReceive high nybbles
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF SERIAL_TIMECAPSULE EQU $60
|
|
|
|
DEF SERIAL_TRADECENTER EQU $70
|
|
|
|
DEF SERIAL_BATTLE EQU $80
|
2018-01-19 19:49:43 +00:00
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF ESTABLISH_CONNECTION_WITH_INTERNAL_CLOCK EQU $01
|
|
|
|
DEF ESTABLISH_CONNECTION_WITH_EXTERNAL_CLOCK EQU $02
|
2018-01-19 19:49:43 +00:00
|
|
|
|
|
|
|
; hSerialConnectionStatus
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF USING_EXTERNAL_CLOCK EQU $01
|
|
|
|
DEF USING_INTERNAL_CLOCK EQU $02
|
|
|
|
DEF CONNECTION_NOT_ESTABLISHED EQU $ff
|
2018-01-19 19:49:43 +00:00
|
|
|
|
2023-03-30 19:05:07 +00:00
|
|
|
; length of a patch list
|
|
|
|
DEF SERIAL_PATCH_LIST_LENGTH EQU 200
|
|
|
|
; size of the patch area (offsets into this area may not have special values)
|
|
|
|
DEF SERIAL_PATCH_DATA_SIZE EQU $fc
|
2018-01-19 19:49:43 +00:00
|
|
|
; signals the start of an array of bytes transferred over the link cable
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF SERIAL_PREAMBLE_BYTE EQU $fd
|
2018-01-19 19:49:43 +00:00
|
|
|
; this byte is used when there is no data to send
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF SERIAL_NO_DATA_BYTE EQU $fe
|
2018-01-19 19:49:43 +00:00
|
|
|
; signals the end of one part of a patch list (there are two parts) for player/enemy party data
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF SERIAL_PATCH_LIST_PART_TERMINATOR EQU $ff
|
2020-12-09 02:24:48 +00:00
|
|
|
; used to replace SERIAL_NO_DATA_BYTE
|
2022-06-06 21:25:42 +00:00
|
|
|
DEF SERIAL_PATCH_REPLACEMENT_BYTE EQU $ff
|
2020-07-06 19:49:01 +00:00
|
|
|
|
2023-03-31 11:13:52 +00:00
|
|
|
DEF SERIAL_PREAMBLE_LENGTH EQU 6
|
|
|
|
DEF SERIAL_RN_PREAMBLE_LENGTH EQU 7
|
|
|
|
DEF SERIAL_PATCH_PREAMBLE_LENGTH EQU 3
|
|
|
|
DEF SERIAL_RNS_LENGTH EQU 10
|
2020-10-27 17:22:27 +00:00
|
|
|
|
2023-03-30 02:51:49 +00:00
|
|
|
DEF SERIAL_MAIL_PREAMBLE_BYTE EQU $20
|
|
|
|
DEF SERIAL_MAIL_PREAMBLE_LENGTH EQU 5
|
|
|
|
; used to replace SERIAL_NO_DATA_BYTE
|
|
|
|
DEF SERIAL_MAIL_REPLACEMENT_BYTE EQU $21
|
2020-12-09 02:24:48 +00:00
|
|
|
|
2020-10-29 20:43:28 +00:00
|
|
|
; timeout duration after exchanging a byte
|
2023-03-30 02:51:49 +00:00
|
|
|
DEF SERIAL_LINK_BYTE_TIMEOUT EQU $5000
|
2020-10-29 20:43:28 +00:00
|
|
|
|
2023-03-30 02:51:49 +00:00
|
|
|
DEF MAX_MYSTERY_GIFT_PARTNERS EQU 5
|