Sherlock: annotated disassembly

Routines

Prev: CB7B Up: Map Next: CBBB
CBA7: Refuse if the character is busy: 'SORRY, I CANNOT DO THAT NOW.'
Called from both E40A (SIT) and E432 (GET OUT) before they do anything else. Checks bit 6 of a flag byte at B934; if clear, returns immediately (continue normally).
"' and he stays in the chair.
Input
$B934 The guard flag
Output
Returns if bit 6 is clear; otherwise the message is printed and the caller is abandoned through $DC15
CBA7 LD A,($B934) Read the guard flag
CBAA BIT 6,A Is the blocking bit set?
CBAC RET Z No: continue normally
CBAD POP HL Yes: discard our own return address
CBAE XOR A Not in the 'quoted' print mode
CBAF LD ($A027),A Store A in $A027 in "Game variables"
CBB2 LD HL,$681A A fixed message...
CBB5 CALL $A59F ...print it
CBB8 JP $DC15 ...then bail out via the shared failure point
Prev: CB7B Up: Map Next: CBBB