Prev: 24875 Up: Map Next: 24897
24883: Step Past Action
Used by the routines at RunScripts and SkipLine.
Moves HL past an action. Actions 9 to 21 carry one extra byte, and higher actions carry two.
SkipAction 24883 LD A,(HL) Keep the action number and step past it.
24884 AND 63
24886 INC HL
24887 CP 9 Actions below 9 have no parameter.
24889 RET C
24890 CP 22 Actions 9 to 21 carry one extra byte.
24892 JR C,SkipAction_One
24894 INC HL Higher actions carry a second extra byte.
SkipAction_One 24895 INC HL Step past the last parameter byte.
24896 RET Return.
Prev: 24875 Up: Map Next: 24897