Routines
| Prev: CD95 | Up: Map | Next: CDBF |
CDA1: Plan opcode 5, SAY TO: say something to someone
|
Pushes the message address, makes the argument the direct object, and prints 6830 (actor SAYS TO object, then the pushed message in quotes). Always succeeds.
|
||||||||||||
| CDA1 | LD L,(IX+$02) | Read byte +2 of the record at IX into L - The message to say... | ||||||||||
| CDA4 | LD H,(IX+$03) | Read byte +3 of the record at IX into H | ||||||||||
| CDA7 | PUSH HL | ...is a parameter for 6830 | ||||||||||
| CDA8 | LD A,(IX+$01) | Read byte +1 of the record at IX into A - Who is spoken to | ||||||||||
| CDAB | CALL $CEDE | Call the routine "Resolve a plan argument byte" (CEDE) | ||||||||||
| CDAE | LD ($A034),A | Store A in $A034 in "Game variables" | ||||||||||
| CDB1 | LD A,$07 | Load A with $07 | ||||||||||
| CDB3 | LD ($A00F),A | Store A in $A00F in "Game variables" | ||||||||||
| CDB6 | LD HL,$6830 | Point HL at the message "YOU SAY TO THE OIL LAMP" W" (6830) - "... SAYS TO ..." | ||||||||||
| CDB9 | CALL $A59F | Call the routine "Print the message at HL" (A59F) | ||||||||||
| CDBC | JP $CE8F | Succeed | ||||||||||
| Prev: CD95 | Up: Map | Next: CDBF |