Routines |
Prev: 7B5A | Up: Map | Next: 7B6A |
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.
|
||||||||
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 |