| Routines

30543: Check whether a character is on the top, middle or bottom floor

Used by the routines at 30555, 30706, 57893, 64077 and 64416. Returns with the zero flag set if and only if the character is exactly on the top, middle or bottom floor.
Input
H | Character number (206, 207, 210, 214)
30543 | LD L,2 | Byte 2 of the character's buffer holds his y-coordinate
30545 | LD A,(HL) | Pick this up in A
30546 | CP 3 | Is the character on the top floor?
30548 | RET Z | Return with the zero flag set if so
30549 | CP 10 | Is the character on the middle floor?
30551 | RET Z | Return with the zero flag set if so
30552 | CP 17 | Is the character on the bottom floor?
30554 | RET | Return with the zero flag set if so