![]() |
Routines |
| Prev: 52990 | Up: Map | Next: 53056 |
|
Used by the routine at ContinueScriptExecution.
Advances the script pointer by the size of this command type.
|
||||
| AdvanceByCommandType | 52995 | 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.
|
||||
| 52997 | CP 15 | Jump ahead to StepNextByte_AdvanceOne if the command is 15. | ||
| 52999 | JR Z,StepNextByte_AdvanceOne | |||
| 53001 | CP 8 | Jump ahead to StepNextByte if the command is 8. | ||
| 53003 | JR Z,StepNextByte | |||
| 53005 | CP 9 | Jump ahead to StepNextByte if the command is 9. | ||
| 53007 | JR Z,StepNextByte | |||
| 53009 | CP 1 | Jump ahead to StepNextByte if the command is 1. | ||
| 53011 | JR Z,StepNextByte | |||
| 53013 | CP 2 | Jump ahead to AdvanceByCommandType_AdvanceFour if the command is 2. | ||
| 53015 | JR Z,AdvanceByCommandType_AdvanceFour | |||
| 53017 | CP 3 | Jump ahead to AdvanceByCommandType_AdvanceThree if the command is 3. | ||
| 53019 | JR Z,AdvanceByCommandType_AdvanceThree | |||
| 53021 | CP 13 | Jump ahead to StepNextByte if the command is 13. | ||
| 53023 | JR Z,StepNextByte | |||
| 53025 | CP 14 | Jump ahead to AdvanceByCommandType_AdvanceThree if the command is 14. | ||
| 53027 | JR Z,AdvanceByCommandType_AdvanceThree | |||
| 53029 | CP 7 | Jump ahead to AdvanceByCommandType_AdvanceFive if the command is 7. | ||
| 53031 | JR Z,AdvanceByCommandType_AdvanceFive | |||
| 53033 | CP 12 | Jump ahead to AdvanceByCommandType_AdvanceFive if the command is 12. | ||
| 53035 | JR Z,AdvanceByCommandType_AdvanceFive | |||
| 53037 | CP 11 | Jump ahead to StepNextByte_AdvanceOne if the command is 11. | ||
| 53039 | JR Z,StepNextByte_AdvanceOne | |||
| 53041 | CP 10 | Jump ahead to StepNextByte_AdvanceOne if the command is 10. | ||
| 53043 | JR Z,StepNextByte_AdvanceOne | |||
| 53045 | CP 5 | Jump ahead to AdvanceByCommandType_AdvanceFour if the command is 5. | ||
| 53047 | JR Z,AdvanceByCommandType_AdvanceFour | |||
| 53049 | CP 4 | Jump ahead to AdvanceByCommandType_AdvanceThree if the command is not 4. | ||
| 53051 | JR NZ,AdvanceByCommandType_AdvanceThree | |||
| AdvanceByCommandType_AdvanceFive | 53053 | INC HL | Step to the next entry. | |
| AdvanceByCommandType_AdvanceFour | 53054 | INC HL | Step to the next entry. | |
| AdvanceByCommandType_AdvanceThree | 53055 | INC HL | Step to the next entry. | |
| Prev: 52990 | Up: Map | Next: 53056 |