Prev: A64B Up: Map Next: A663
A652: Check Active Scenic Events
Used by the routines at A898 and A8B2.
Input
HL Pointer to scenic data
Output
A
F The Z flag is set then there are no matching scenic events
CheckActiveScenicEvents A652 JR ActiveScenicEvents_CheckNext Jump to ActiveScenicEvents_CheckNext.
ActiveScenicEvents_Loop A654 INC HL Move to the next event ID.
ActiveScenicEvents_CheckNext A655 LD A,(HL) Jump to NoActiveScenicEvents if *HL is equal to FF.
A656 CP $FF
A658 JR Z,NoActiveScenicEvents
A65A CALL ValidateItemPresent Call ValidateItemPresent.
A65D JR NZ,ActiveScenicEvents_Loop Jump to ActiveScenicEvents_Loop if the Z flag is not set.
A65F LD A,(HL) A=*HL.
A660 RET Return.
NoActiveScenicEvents A661 AND A Set Z flag.
A662 RET Return.
View the equivalent code in The Jewels Of Babylon.
Prev: A64B Up: Map Next: A663