![]() |
Routines |
| Prev: 7A34 | Up: Map |
|
Continues from the routine at 76BC. Sends the police after Sam if he has entered a house through the front door without a key.
|
||||||||||||
| 7A39 | LD C,A | C=door status flags | ||||||||||
| 7A3A | LD A,($7FEA) | Collect the key inventory flags from 7FEA | ||||||||||
| 7A3D | AND C | Does Sam have the key to the door? | ||||||||||
| 7A3E | RET NZ | Return if so | ||||||||||
|
Sam is entering a house through the front door without a key. The police will need to be alerted.
|
||||||||||||
| 7A3F | PUSH DE | |||||||||||
| 7A40 | LD DE,($E601) | Copy Sam's coordinates to 7FDB | ||||||||||
| 7A44 | LD ($7FDB),DE | |||||||||||
| 7A48 | LD C,$01 | Assume a z-coordinate of 1 (indoors) | ||||||||||
| 7A4A | CALL $ED47 | Obtain an identifier for Sam's current location | ||||||||||
| 7A4D | LD ($7FDD),A | Store it at 7FDD | ||||||||||
| 7A50 | LD A,$01 | Set bit 0 at 7FEB: Sam is wanted by the police | ||||||||||
| 7A52 | LD ($7FEB),A | |||||||||||
| 7A55 | POP DE | |||||||||||
| 7A56 | RET | |||||||||||
| Prev: 7A34 | Up: Map |