Dun Darach | Routines |
Prev: 8A2E | Up: Map |
|
|||||||
Checks the combination lock of a room.
|
|||||||
Exit_CombinationLock | 8A9A | LD A,(Camera_Compass) | Only check for east direction exit. | ||||
8A9D | CP $01 | ||||||
8A9F | JP NZ,Inv_AutoSelect | ||||||
8AA2 | LD IX,(Room_CurrentDataPtr) | Run through the value of each lock | |||||
8AA6 | LD B,$03 | ||||||
Exit_CombinationLock_0 | 8AA8 | LD A,(IX+$06) | See if the current values are the same as the stored key value. | ||||
8AAB | CP (IX+$09) | ||||||
8AAE | JR NZ,Shop_Locked | Display 'locked' if anything is different. | |||||
8AB0 | INC IX | loop through... | |||||
8AB2 | DJNZ Exit_CombinationLock_0 | ||||||
8AB4 | JP Inv_AutoSelect | Allow through... |
Prev: 8A2E | Up: Map |