diff options
author | yenatch <yenatch@gmail.com> | 2018-01-22 01:06:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-22 01:06:48 -0500 |
commit | c60f1331fef22b886adf3472d2b4f348832cfaf7 (patch) | |
tree | 5a471fad61e406f5b3ca1aba67ced0186de01c52 /constants/serial_constants.asm | |
parent | f27f79488a460f0a89670f3611e1e9e175baf5d6 (diff) | |
parent | 7fba864883732ccecb1221ae7ff97492d112362a (diff) |
Merge pull request #456 from Rangi42/master
OAM data documentation; move more content into data/; move palettes into gfx/; more code+script constants; consistent map naming
Diffstat (limited to 'constants/serial_constants.asm')
-rw-r--r-- | constants/serial_constants.asm | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/constants/serial_constants.asm b/constants/serial_constants.asm index e7b4c4b2c..757292ee9 100644 --- a/constants/serial_constants.asm +++ b/constants/serial_constants.asm @@ -6,7 +6,25 @@ const LINK_COLOSSEUM ; 3 const LINK_MOBILE ; 4 - +; hSerialReceive high nybbles SERIAL_TIMECAPSULE EQU $60 SERIAL_TRADECENTER EQU $70 SERIAL_BATTLE EQU $80 + +ESTABLISH_CONNECTION_WITH_INTERNAL_CLOCK EQU $01 +ESTABLISH_CONNECTION_WITH_EXTERNAL_CLOCK EQU $02 + +START_TRANSFER_EXTERNAL_CLOCK EQU $80 ; 1 << rSC_ON +START_TRANSFER_INTERNAL_CLOCK EQU $81 ; (1 << rSC_ON) | 1 + +; hSerialConnectionStatus +USING_EXTERNAL_CLOCK EQU $01 +USING_INTERNAL_CLOCK EQU $02 +CONNECTION_NOT_ESTABLISHED EQU $ff + +; 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 |