diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-12-08 21:24:48 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-12-08 21:24:48 -0500 |
commit | 6f226f584cf939015ccc3376f23c798833db4e83 (patch) | |
tree | 5e614641db14a0f5c74f10b17ccc64120e85f7e4 /constants | |
parent | 9fea403be2b1cfc23323a2201ea3ecc55c6c9965 (diff) |
Identify link.asm WRAM labels based on ax6's research notes <https://pastebin.com/NTxjzKGQ>
Diffstat (limited to 'constants')
-rw-r--r-- | constants/serial_constants.asm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/constants/serial_constants.asm b/constants/serial_constants.asm index 97c6a9b04..e8e6929bb 100644 --- a/constants/serial_constants.asm +++ b/constants/serial_constants.asm @@ -22,17 +22,25 @@ USING_EXTERNAL_CLOCK EQU $01 USING_INTERNAL_CLOCK EQU $02 CONNECTION_NOT_ESTABLISHED EQU $ff +; length of a patch list (less than any of the signal bytes) +SERIAL_PATCH_LIST_LENGTH EQU $fc ; signals the start of an array of bytes transferred over the link cable SERIAL_PREAMBLE_BYTE EQU $fd ; this byte is used when there is no data to send 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 +; used to replace SERIAL_NO_DATA_BYTE +SERIAL_PATCH_REPLACEMENT_BYTE EQU $ff SERIAL_PREAMBLE_LENGTH EQU 6 SERIAL_RN_PREAMBLE_LENGTH EQU 7 SERIAL_RNS_LENGTH EQU 10 +SERIAL_MAIL_PREAMBLE_BYTE EQU $20 +SERIAL_MAIL_REPLACEMENT_BYTE EQU $21 +SERIAL_MAIL_PREAMBLE_LENGTH EQU 5 + ; timeout duration after exchanging a byte SERIAL_LINK_BYTE_TIMEOUT EQU $5000 |