Routines
| Prev: EFB3 | Up: Map | Next: EFF6 |
EFC7: Action record: Phipps wakes at 7 - or shoots you if you are in the house (RUN at $EE46, $EEC3, $EEDB, $EF09)
|
||||||||||||
| EFC7 | DEFB $00,$00 | Action record header: flags $00; byte 1 $00 | ||||||||||
| EFC9 | LD A,($A009) | Read the room the player is in, which decides what is shown ($A009) into A - The player's room ($A009): one of Basil's house (33 entrance hall to 39 yard; the seven compares run $23, $21, $22, $26, $25, $24, $27)? | ||||||||||
| EFCC | CP $23 | Compare A with $23 | ||||||||||
| EFCE | JR Z,$EFE6 | If A equals $23, skip ahead to EFE6 | ||||||||||
| EFD0 | CP $21 | Compare A with $21 | ||||||||||
| EFD2 | JR Z,$EFE6 | If A equals $21, skip ahead to EFE6 | ||||||||||
| EFD4 | CP $22 | Compare A with $22 | ||||||||||
| EFD6 | JR Z,$EFE6 | If A equals $22, skip ahead to EFE6 | ||||||||||
| EFD8 | CP $26 | Compare A with $26 | ||||||||||
| EFDA | JR Z,$EFE6 | If A equals $26, skip ahead to EFE6 | ||||||||||
| EFDC | CP $25 | Compare A with $25 | ||||||||||
| EFDE | JR Z,$EFE6 | If A equals $25, skip ahead to EFE6 | ||||||||||
| EFE0 | CP $24 | Compare A with $24 | ||||||||||
| EFE2 | JR Z,$EFE6 | If A equals $24, skip ahead to EFE6 | ||||||||||
| EFE4 | CP $27 | Compare A with $27 | ||||||||||
| EFE6 | JP Z,$DFCC | Yes: take the other branch at DFCC | ||||||||||
| EFE9 | LD DE,$0000 | Load DE with $0000 - No: DE = 0, B = $80, and clear then re-set bit 6 of the record's +5 (EFBA)... | ||||||||||
| EFEC | LD B,$80 | Load B with $80 | ||||||||||
| EFEE | CALL $EFBA | Call EFBA (inside "Action record: Phipps goes to sleep (RUN at...") | ||||||||||
| EFF1 | SET 6,(IX+$05) | Set bit 6 of byte +5 of the record at IX - ...so it ends with bit 6 set again: awake and a person (the state word and the +8 nibble were cleared by AWAIT 6 phipps [fail: wait here] DO 128 PUT: self, room 103 (old mill DO 136 IS HOUR 15 [fail: wait here] RUN E52F START COUNTDOWN of (dobj) DO 131 IS IN: 0 you, room 103 (old PASS RUN E57A TICK the countdown PASS AWAIT 4 chief constable straker RUN F198 CHANCE: succeed if a PRINT message 7552: "YOU SEEMS AT GOTO F017 PASS RUN F198 CHANCE: succeed if a PRINT message 7552: "YOU SEEMS AT RUN F198 CHANCE: succeed if a RUN F198 CHANCE: succeed if a DO 135 GO THROUGH DOOR: -, - DO 131 IS IN: self, room 63 (browns DO 135 GO THROUGH DOOR: 45 large oak GOTO F029 DO 40 SIT IN [busy; ok F029] DO 25 GET OUT OF [busy] GOTO F029 Entry (not reached from anywhere GOTO F05C AWAIT 2 inspector lestrade [busy; DO 128 PUT: self, room 92 (jones SAY TO 11 local police man message PASS AWAIT 2 inspector lestrade [busy; SAY TO 2 inspector lestrade message SIGNAL 2 inspector lestrade [busy] DO 134 FOLLOW UNTIL IN: 2 inspector PRINT message 6CB9: "UPON SEEING RUN E52F START COUNTDOWN of (dobj) RUN E5A8 IDLE (no checks; takes a RUN E57A TICK the countdown DO 135 GO THROUGH DOOR: 69 DO 135 GO THROUGH DOOR: 19 front DO 1 NORTH [busy] RUN F1A8 [busy] DO 4 WEST [busy] DO 2 SOUTH [busy] DO 2 SOUTH [busy] DO 128 PUT: self, room 0 (off stage) DO 136 IS HOUR 23 [fail: wait here] RUN F198 CHANCE: succeed if a DO 128 PUT: self, room 40 (sidmouth DO 135 GO THROUGH DOOR: 48 heavy oak DO 9 UP [busy] DO 36 OPEN: 48 heavy oak door, - DO 5 NORTHEAST [busy] DO 8 SOUTHWEST [busy] DO 10 DOWN [busy] DO 135 GO THROUGH DOOR: 48 heavy oak RUN EBA4 (-, 12 local police man) DO 1 NORTH [busy] SIGNAL 2 inspector lestrade PASS DO 129 IS WITH: 0 you, self [ok DO 136 IS HOUR 1 [busy; fail F0D2] GOTO F0EE SAY TO 0 you message 6C78: "WELL RUN F103 [busy] RUN DDBE WAIT (dobj) minutes (4, RUN F198 CHANCE: succeed if a DO 2 SOUTH AWAIT 2 inspector lestrade [busy; DO 128 PUT: self, room 0 (off stage) PASS GOTO F0FF Action record header: flags $00; byte 1 $00 | ||||||||||
| EFF5 | RET | Return to the caller | ||||||||||
| Prev: EFB3 | Up: Map | Next: EFF6 |