![]() |
Routines |
| Prev: CEFE | Up: Map | Next: CF40 |
|
Used by the routine at ContinueScriptExecution.
Advances the script pointer by the size of this command type.
|
||||
| AdvanceByCommandType | CF03 | AND %00001111 | Extract the command type (bits 0-3). | |
|
Route to the appropriate handler based on command type to advance the script pointer by the correct number of bytes.
|
||||
| CF05 | CP $0F | Jump ahead to StepNextByte_AdvanceOne if the command is 0F. | ||
| CF07 | JR Z,StepNextByte_AdvanceOne | |||
| CF09 | CP $08 | Jump ahead to StepNextByte if the command is 08. | ||
| CF0B | JR Z,StepNextByte | |||
| CF0D | CP $09 | Jump ahead to StepNextByte if the command is 09. | ||
| CF0F | JR Z,StepNextByte | |||
| CF11 | CP $01 | Jump ahead to StepNextByte if the command is 01. | ||
| CF13 | JR Z,StepNextByte | |||
| CF15 | CP $02 | Jump ahead to AdvanceByCommandType_AdvanceFour if the command is 02. | ||
| CF17 | JR Z,AdvanceByCommandType_AdvanceFour | |||
| CF19 | CP $03 | Jump ahead to AdvanceByCommandType_AdvanceThree if the command is 03. | ||
| CF1B | JR Z,AdvanceByCommandType_AdvanceThree | |||
| CF1D | CP $0D | Jump ahead to StepNextByte if the command is 0D. | ||
| CF1F | JR Z,StepNextByte | |||
| CF21 | CP $0E | Jump ahead to AdvanceByCommandType_AdvanceThree if the command is 0E. | ||
| CF23 | JR Z,AdvanceByCommandType_AdvanceThree | |||
| CF25 | CP $07 | Jump ahead to AdvanceByCommandType_AdvanceFive if the command is 07. | ||
| CF27 | JR Z,AdvanceByCommandType_AdvanceFive | |||
| CF29 | CP $0C | Jump ahead to AdvanceByCommandType_AdvanceFive if the command is 0C. | ||
| CF2B | JR Z,AdvanceByCommandType_AdvanceFive | |||
| CF2D | CP $0B | Jump ahead to StepNextByte_AdvanceOne if the command is 0B. | ||
| CF2F | JR Z,StepNextByte_AdvanceOne | |||
| CF31 | CP $0A | Jump ahead to StepNextByte_AdvanceOne if the command is 0A. | ||
| CF33 | JR Z,StepNextByte_AdvanceOne | |||
| CF35 | CP $05 | Jump ahead to AdvanceByCommandType_AdvanceFour if the command is 05. | ||
| CF37 | JR Z,AdvanceByCommandType_AdvanceFour | |||
| CF39 | CP $04 | Jump ahead to AdvanceByCommandType_AdvanceThree if the command is not 04. | ||
| CF3B | JR NZ,AdvanceByCommandType_AdvanceThree | |||
| AdvanceByCommandType_AdvanceFive | CF3D | INC HL | Step to the next entry. | |
| AdvanceByCommandType_AdvanceFour | CF3E | INC HL | Step to the next entry. | |
| AdvanceByCommandType_AdvanceThree | CF3F | INC HL | Step to the next entry. | |
| Prev: CEFE | Up: Map | Next: CF40 |