Prev: 9CE9 Up: Map Next: 9D10
9CF2: Routine at 9CF2
Used by the routines at 9CE9, CharacterAction_LocalPoliceMan_01 and 9D95.
9CF2 LD A,C Write C to *RoomDisplayParameter.
9CF3 LD ($A034),A
9CF6 CALL $9CCE Call 9CCE.
9CF9 JR Z,$9D02 Jump to 9D02 if the zero flag is set.
9CFB DEC (HL) Decrease *HL by one.
9CFC JP P,$9D00 Jump to 9D00 if *HL is greater than or equal to 00.
9CFF INC (HL) Increment *HL by one.
9D00 POP DE Restore DE from the stack.
9D01 RET Return.
9D02 LD A,(HL) Jump to 9D00 if *HL is not zero.
9D03 AND A
9D04 JR NZ,$9D00
9D06 LD A,$0F A=0F.
9D08 CALL $D2A4 Call D2A4.
9D0B ADD A,$1E A+=1E.
9D0D LD (HL),A Write A to *HL.
9D0E XOR A A=00.
9D0F RET Return.
Prev: 9CE9 Up: Map Next: 9D10