Routines
| Prev: A771 | Up: Map | Next: A793 |
A780: Codes $0C and $0E: YOUR or HIS
|
||||||||||||||
| A780 | LD A,($A036) | Code $0C: whose? A = the actor ($A036) | ||||||||||||
| A783 | LD DE,$0414 | Load DE with $0414 - DE = $0414 (HIS), returned NZ when A is not zero | ||||||||||||
| A786 | AND A | Clear the carry flag for the caller (A is unchanged) | ||||||||||||
| A787 | RET NZ | If A is not zero, return | ||||||||||||
| A788 | LD DE,$09F2 | Load DE with $09F2 - The player (A = 0): DE = $09F2 (YOUR), NZ | ||||||||||||
| A78B | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller | ||||||||||||
| A78D | RET | Return to the caller | ||||||||||||
| A78E | LD A,($A034) | Read $A034 in "Game variables" into A - Code $0E: the same for the direct object ($A034) | ||||||||||||
| A791 | JR $A783 | Go back to A783 | ||||||||||||
| Prev: A771 | Up: Map | Next: A793 |