Prev: 26175 Up: Map Next: 26194
26184: Check whether a character is on a staircase
Used by the routines at 26194, 26282, 27823, 28304, 62617 and 63056. Returns with the zero flag set if the character is not on a staircase.
Input
D Character's y-coordinate
26184 LD A,D A=character's y-coordinate
This entry point is used by the routines at 27126, 27932, 28446, 28672 and 63973 with A holding the character's y-coordinate.
26185 CP 155 Is the character on the top floor?
26187 RET Z Return with the zero flag set if so
26188 CP 162 Is the character on the middle floor?
26190 RET Z Return with the zero flag set if so
26191 CP 169 Is the character on the top floor?
26193 RET Return with the zero flag set if so
Prev: 26175 Up: Map Next: 26194