Routines
| Prev: 9DD8 | Up: Map | Next: 9E48 |
9DFF: Lestrade's after-turn routine, until the introduction
|
||||||||
| 9DFF | LD C,$04 | Load C with $04 - Is Straker here? | ||||||
| 9E01 | CALL $9CCE | Call the routine "Is thing C in the same room as the current actor, and..." (9CCE) | ||||||
| 9E04 | JR NZ,$9D95 | No: the usual routine | ||||||
| 9E06 | LD C,$00 | Load C with $00 - Is the player here? | ||||||
| 9E08 | CALL $9CCE | Call the routine "Is thing C in the same room as the current actor, and..." (9CCE) | ||||||
| 9E0B | JR NZ,$9D95 | If the zero flag is clear, go back to the routine "Lestrade's after-turn routine, after the..." (9D95) | ||||||
| 9E0D | LD A,$04 | Load A with $04 - Straker is the one speaking | ||||||
| 9E0F | LD ($A034),A | Store A in $A034 in "Game variables" | ||||||
| 9E12 | LD A,$01 | Load A with $01 - Lestrade has been introduced | ||||||
| 9E14 | LD ($9D90),A | Store A in "Lestrade's flags" (9D90) | ||||||
| 9E17 | LD A,$5C | Load A with $5C - Room 92... | ||||||
| 9E19 | CALL $D224 | Call the routine "Find a room record" (D224) | ||||||
| 9E1C | LD (IX+$0A),$00 | Set byte +10 of the record at IX to $00 | ||||||
| 9E20 | LD A,$3E | Load A with $3E - ...and room 62: clear +$0A | ||||||
| 9E22 | CALL $D224 | Call the routine "Find a room record" (D224) | ||||||
| 9E25 | LD (IX+$0A),$00 | Set byte +10 of the record at IX to $00 | ||||||
| 9E29 | LD HL,$9D95 | Point HL at "Lestrade's after-turn routine, after the..." (9D95) - From now on run 9D95 after his turns | ||||||
| 9E2C | LD ($9C86),HL | Store HL in $9C86 in "After-turn routines for nine characters" | ||||||
| 9E2F | LD A,$01 | Load A with $01 | ||||||
| 9E31 | LD ($9D92),A | Store A in $9D92 in "Lestrade's flags" | ||||||
| 9E34 | LD A,($9D91) | Read 9D91 in "Lestrade's flags" into A - Which introduction? | ||||||
| 9E37 | AND A | Test A for zero (this leaves A as it was and clears carry) | ||||||
| 9E38 | LD HL,$7207 | Point HL at the message "YOU SAY" THE OIL LAMP I WOULD LIKE YOU TO MEET... (7207) | ||||||
| 9E3B | JR NZ,$9E44 | If A is not zero, skip ahead to 9E44 | ||||||
| 9E3D | INC A | Add one to A | ||||||
| 9E3E | LD ($9D91),A | Store A in 9D91 in "Lestrade's flags" | ||||||
| 9E41 | LD HL,$7224 | "YOU SAY" WELL, HOLMES FANCY SEEING YOU HERE. THE OIL LAMP..." | ||||||
| 9E44 | CALL $A59F | Call the routine "Print the message at HL" (A59F) - Print it | ||||||
| 9E47 | RET | Return to the caller | ||||||
| Prev: 9DD8 | Up: Map | Next: 9E48 |