Prev: 7F1A Up: Map Next: 7F77
7F60: Inglish: Walk The Character Slots
Used by the routines at Inglish_SaveTheClauseAndAct and Turn_ThePlayerHasDied.
Walks the eight character slots at B738 and frees (00) any slot held by the character in A.
Inglish_WalkTheCharacterSlots 7F60 PUSH HL Save HL, DE and BC, and point HL at the first character slot at B738.
7F61 PUSH DE
7F62 PUSH BC
7F63 LD HL,$B738
7F66 LD DE,$0019 Each character slot at B738 is 19 bytes.
7F69 LD B,$08 Count 08 passes.
Inglish_WalkTheCharacterSlots_ClearThisSlot 7F6B CP (HL) Jump to Inglish_WalkTheCharacterSlots_StepToTheNextSlot unless this slot holds the character in A.
7F6C JR NZ,Inglish_WalkTheCharacterSlots_StepToTheNextSlot
7F6E LD (HL),$00 Clear it.
Inglish_WalkTheCharacterSlots_StepToTheNextSlot 7F70 ADD HL,DE Step to the next 19-byte character slot.
7F71 DJNZ Inglish_WalkTheCharacterSlots_ClearThisSlot Loop back to Inglish_WalkTheCharacterSlots_ClearThisSlot until 08 runs out.
7F73 POP BC Restore BC, DE and HL from the stack.
7F74 POP DE
7F75 POP HL
7F76 RET Return.
Prev: 7F1A Up: Map Next: 7F77