Prev: 29218 Up: Map Next: 29354
29332: Check whether Sam's disguise is known to the police
Used by the routines at 29218 and 32009. Returns with the appropriate attribute byte to use for Sam's current disguise in A. Also sets bit 0 of B if Sam's disguise is known to the police.
Input
B 0, 4 or 6 (when called from 29218)
29332 LD A,(32713) A=Sam's current disguise ID (0-7)
29335 ADD A,160 Byte 21 of pages 160-167 holds the values 128, 64, 32, 16, 8, 4, 2 and 1
29337 LD H,A
29338 LD L,21
29340 LD A,(32744) Collect the disguise status flags from 32744
29343 AND (HL) Set the zero flag if this disguise is unknown to the police
29344 LD HL,23229 23229 holds the attribute byte for the top-left tile of Sam's disguise in the bottom right of the screen
29347 LD A,79 79=INK 7: PAPER 1: BRIGHT 1
29349 RET Z Return if this disguise is unknown to the police
29350 INC B Set bit 0 of B to indicate that Sam's disguise is known to the police
29351 LD A,87 87=INK 7: PAPER 2: BRIGHT 1
29353 RET
Prev: 29218 Up: Map Next: 29354