Prev: AE68 Up: Map Next: AE8A
AE81: Test Valves In Play
Used by the routines at HandleValveGhost, HandleValveGhostSparkle and HandleSocket.
Tests whether either of the two slots for special objects is in use. They hold the valves and extra lives which are in the room.
Output
F Zero flag set if both slots are empty
Combine the two special object slots.
TestValvesInPlay AE81 LD A,($5BC8) Fetch SpecialObjectSlots.
AE84 LD C,A Keep it in C.
AE85 LD A,($5BE8) Fetch 5BE8.
AE88 OR C Combine it with the first.
AE89 RET Return.
Prev: AE68 Up: Map Next: AE8A