![]() |
Routines |
| Prev: 32538 | Up: Map | Next: 32631 |
|
Used by the routines at Inglish_SaveTheClauseAndAct and Turn_ThePlayerHasDied.
Walks the eight character slots at 46904 and frees (0) any slot held by the character in A.
|
||||
| Inglish_WalkTheCharacterSlots | 32608 | PUSH HL | Save HL, DE and BC, and point HL at the first character slot at 46904. | |
| 32609 | PUSH DE | |||
| 32610 | PUSH BC | |||
| 32611 | LD HL,46904 | |||
| 32614 | LD DE,25 | Each character slot at 46904 is 25 bytes. | ||
| 32617 | LD B,8 | Count 8 passes. | ||
| Inglish_WalkTheCharacterSlots_ClearThisSlot | 32619 | CP (HL) | Jump to Inglish_WalkTheCharacterSlots_StepToTheNextSlot unless this slot holds the character in A. | |
| 32620 | JR NZ,Inglish_WalkTheCharacterSlots_StepToTheNextSlot | |||
| 32622 | LD (HL),0 | Clear it. | ||
| Inglish_WalkTheCharacterSlots_StepToTheNextSlot | 32624 | ADD HL,DE | Step to the next 25-byte character slot. | |
| 32625 | DJNZ Inglish_WalkTheCharacterSlots_ClearThisSlot | Loop back to Inglish_WalkTheCharacterSlots_ClearThisSlot until 8 runs out. | ||
| 32627 | POP BC | Restore BC, DE and HL from the stack. | ||
| 32628 | POP DE | |||
| 32629 | POP HL | |||
| 32630 | RET | Return. | ||
| Prev: 32538 | Up: Map | Next: 32631 |