Prev: 6939 Up: Map Next: 69DC
69C9: Reset non-player visible characters
This is called by setup_movable_items to reset all seven non-player visible characters.
Used by the routine at setup_movable_items only.
reset_nonplayer_visible_characters 69C9 LD HL,$8020 Start at the second visible character
69CC LD BC,$0720 Set B for seven iterations and set C for a 32 byte stride simultaneously
Start loop
reset_nonplayer_visible_characters_0 69CF PUSH BC Reset the visible character at HL
69D0 PUSH HL
69D1 CALL reset_visible_character
69D4 POP HL
69D5 POP BC
69D6 LD A,L Step HL to the next visible character
69D7 ADD A,C
69D8 LD L,A
69D9 DJNZ reset_nonplayer_visible_characters_0 ...loop
69DB RET Return
Prev: 6939 Up: Map Next: 69DC