Skool Daze Routines
Prev: 46463 Up: Map Next: 46590
46568: Walk a character on or off screen
Used by the routines at 46056 and 61408.
46568 LD B,38 The character will take 38 steps along the catwalk
46570 PUSH BC
46571 LD H,n n is either 152 (boy) or 164 (teacher) (see 45429)
46573 CALL 46312 Move the character forward one step along the catwalk
46576 CALL 65088 Make a walking sound effect
46579 LD C,100 Pause briefly between steps
46581 DJNZ 46581
46583 DEC C
46584 JR NZ,46581
46586 POP BC
46587 DJNZ 46570 Jump back until 38 steps have been taken
46589 RET
Prev: 46463 Up: Map Next: 46590