Prev: 9CA1 Up: Map Next: 9CCE
9CA2: Character Action: Basil Phipps
Scheduled behaviour for Basil Phipps. Reached through the character-action table at Table_CharacterActions, dispatched by 9C84.
CharacterAction_BasilPhipps 9CA2 LD A,$55 Call FetchObjectDataPointer to look up the Burn Note.
9CA4 CALL FetchObjectDataPointer
9CA7 BIT 7,(IX+$05) Return if the object-attribute flag is clear.
9CAB RET Z
9CAC LD HL,$9CA1 Return if Basil Phipps's state is already FF.
9CAF LD A,(HL)
9CB0 CP $FF
9CB2 RET Z
9CB3 DEC (HL) Count down the entry.
9CB4 RET NZ Return while this character's countdown still has time left.
9CB5 LD HL,$015B Store the low byte of the text pointer.
9CB8 LD (IX+$09),L
9CBB LD (IX+$0A),H Store the high byte of the text pointer.
9CBE XOR A Write 00 to
  • *IX+0D
  • *IX+0E
.
9CBF LD (IX+$0D),A
9CC2 LD (IX+$0E),A
9CC5 LD IX,$99B7 Clear the action-taken flag.
9CC9 RES 1,(IX+$03)
9CCD RET Return.
Prev: 9CA1 Up: Map Next: 9CCE