| Routines

31998: Check whether Sam should be chased by the police

Used by the routine at 29361. Returns with the police flags in A if Sam is neither falling from the roof of a building nor being carried by a gangster or policeman; otherwise returns with A=0.
31998 | LD A,(32764) | Collect Sam's status flags from 32764
32001 | AND 129 | Keep only bits 0 and 7
32003 | LD A,(32747) | Collect the police flags from 32747
32006 | RET Z | Return unless Sam is being carried by a gangster or policeman, or is falling from a building
32007 | XOR A | A=0
32008 | RET |