Prev: 52958 Up: Map Next: 52995
52990: Advance Script Pointer By Command Size
Used by the routine at ProcessScriptCommandWithCounter.
Advances the script pointer past a command byte by the appropriate number of bytes based on the command type. Different command types have different data sizes, so the pointer must be advanced accordingly.
Input
A Command byte
Output
HL Updated script pointer
Extended commands (bit 7 set) require an extra 2-byte advance before the normal command type advance.
AdvanceScriptPointerByCommandSize 52990 BIT 7,A If bit 7 of the command is set, call StepNextByte to step past its two-byte address.
52992 CALL NZ,StepNextByte
Prev: 52958 Up: Map Next: 52995