![]() |
Routines |
| Prev: 40097 | Up: Map | Next: 40142 |
|
Scheduled behaviour for Basil Phipps. Reached through the character-action table at Table_CharacterActions, dispatched by 40068.
|
||||
| CharacterAction_BasilPhipps | 40098 | LD A,85 | Call FetchObjectDataPointer to look up the Burn Note. | |
| 40100 | CALL FetchObjectDataPointer | |||
| 40103 | BIT 7,(IX+5) | Return if the object-attribute flag is clear. | ||
| 40107 | RET Z | |||
| 40108 | LD HL,40097 | Return if Basil Phipps's state is already 255. | ||
| 40111 | LD A,(HL) | |||
| 40112 | CP 255 | |||
| 40114 | RET Z | |||
| 40115 | DEC (HL) | Count down the entry. | ||
| 40116 | RET NZ | Return while this character's countdown still has time left. | ||
| 40117 | LD HL,347 | Store the low byte of the text pointer. | ||
| 40120 | LD (IX+9),L | |||
| 40123 | LD (IX+10),H | Store the high byte of the text pointer. | ||
| 40126 | XOR A | Write 0 to
|
||
| 40127 | LD (IX+13),A | |||
| 40130 | LD (IX+14),A | |||
| 40133 | LD IX,39351 | Clear the action-taken flag. | ||
| 40137 | RES 1,(IX+3) | |||
| 40141 | RET | Return. | ||
| Prev: 40097 | Up: Map | Next: 40142 |