Routines
| Prev: 9A7E | Up: Map | Next: 9A99 |
9A80: Print one of two messages, depending on who is acting
|
||||||||||
| 9A80 | LD A,($A036) | The actor | ||||||||
| 9A83 | CP $00 | Compare A with $00 - You? | ||||||||
| 9A85 | LD A,$01 | Load A with $01 | ||||||||
| 9A87 | LD HL,$6915 | Point HL at the message "HI." (6915) | ||||||||
| 9A8A | JR Z,$9A90 | If A equals $00, skip ahead to 9A90 | ||||||||
| 9A8C | XOR A | Someone else | ||||||||
| 9A8D | LD HL,$6920 | Point HL at the message "YOU SAY" GOOD MORNING "." (6920) | ||||||||
| 9A90 | LD ($A027),A | Store A in $A027 in "Game variables" | ||||||||
| 9A93 | CALL $A59F | Print it | ||||||||
| 9A96 | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller - Succeed | ||||||||
| 9A98 | RET | Return to the caller | ||||||||
| Prev: 9A7E | Up: Map | Next: 9A99 |