| Routines

29854: Check whether Sam is standing next to a telephone

Used by the routines at 29733 and 30458. Returns with the zero flag reset if Sam is standing next to a telephone, and the carry flag reset as well if the telephone is ringing.
Input
H | 230 (Sam)
29854 | CALL 27892 | Is the x-coordinate of the front column of Sam's sprite between 1 and 6 mod 8 (where phones can be picked up)?
29857 | RET Z | Return if not
29858 | NOP |
29859 | CALL 62548 | Is Sam standing next to a telephone?
29862 | RET Z | Return if not
29863 | JP 30429 | Check whether the phone is ringing