Prev: 612B Up: Map Next: 6141
6133: Step Past Action
Used by the routines at RunScripts and SkipLine.
Moves HL past an action. Actions 09 to 15 carry one extra byte, and higher actions carry two.
SkipAction 6133 LD A,(HL) Fetch the action byte.
6134 AND %00111111 Keep only bits 0-5.
6136 INC HL Step past the action.
6137 CP $09 Return if the action number is below 09.
6139 RET C
613A CP $16 Actions 09 to 15 carry one extra byte.
613C JR C,SkipAction_One
613E INC HL Higher actions carry a second extra byte.
Step past the last parameter.
SkipAction_One 613F INC HL Step past the last parameter byte.
6140 RET Return.
Prev: 612B Up: Map Next: 6141