![]() |
Routines |
| Prev: 61871 | Up: Map | Next: 61948 |
|
Used by the routine at Handler_KeysAndLockedDoors.
Walks ReferenceKeysAndLockedDoors looking for an entry whose key ID matches A.
|
||||||||||||
| FindMatchingKey | 61925 | LD DE,6 | DE=0006 (key entry length). | |||||||||
| 61928 | LD C,A | C=the key ID to match. | ||||||||||
| 61929 | LD IX,(23514) | Point IX at *ReferenceKeysAndLockedDoors. | ||||||||||
| FindMatchingKey_ScanLoop | 61933 | LD A,(IX+0) | Return if this key entry is the terminator (255). | |||||||||
| 61936 | CP 255 | |||||||||||
| 61938 | RET Z | |||||||||||
| 61939 | LD A,C | Return if this entry's key ID matches. | ||||||||||
| 61940 | CP (IX+4) | |||||||||||
| 61943 | RET Z | |||||||||||
| 61944 | ADD IX,DE | Move IX on to the next key entry. | ||||||||||
| 61946 | JR FindMatchingKey_ScanLoop | Jump to FindMatchingKey_ScanLoop. | ||||||||||
| Prev: 61871 | Up: Map | Next: 61948 |