Routines
| Prev: DD84 | Up: Map | Next: DDB4 |
DD9E: Action record: default for verb 46 (TALK TO)
|
TALK TO: passes the quoted words to B86A with A = 1 when the person spoken to is an actor with a record, 0 otherwise, and succeeds.
|
||||||||||||
| DD9E | DEFB $0D,$10 | Action record header: flags $0D; byte 1 $10 | ||||||||||
| DDA0 | LD A,($A034) | Read $A034 in "Game variables" into A | ||||||||||
| DDA3 | CALL $CC0E | Call the routine "Find the actor record whose id matches C" (CC0E) - Is the direct object an actor with a record (CC0E)? A = 0 if not, 1 if so | ||||||||||
| DDA6 | CP $FF | Compare A with $FF | ||||||||||
| DDA8 | LD A,$00 | Load A with $00 | ||||||||||
| DDAA | JR Z,$DDAE | If A equals $FF, skip ahead to DDAE | ||||||||||
| DDAC | LD A,$01 | Load A with $01 | ||||||||||
| DDAE | CALL $B86A | Hand the quoted words on (B86A) | ||||||||||
| DDB1 | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller - Succeed | ||||||||||
| DDB3 | RET | Return to the caller | ||||||||||
| Prev: DD84 | Up: Map | Next: DDB4 |