Prev: 7B5A Up: Map Next: 7B6A
7B5C: Deal with a character who is standing next to the jail cell door
Used by the routine at EBBB. Deals with a character who is standing just behind the jail cell door and trying to move right. If the character is Sam, this routine prevents him from escaping from the jail cell while he's imprisoned there.
Input
H Character number (0xD7-0xE6)
7B5C LD A,H A=character number
7B5D CP $E6 Are we dealing with Sam?
7B5F JP NZ,$EC07 Jump back into the calling routine if not (and allow the character to move right)
7B62 LD A,($7FEB) Collect the police flags from 7FEB
7B65 RLCA Is Sam in jail?
7B66 JP NC,$EC07 Jump back into the calling routine if not (and allow Sam to move right)
7B69 RET
Prev: 7B5A Up: Map Next: 7B6A