Prev: 62D7 Up: Map Next: 631D
6317: Determine whether a character should be moved (2)
Continues from 62B2. So far, byte 0x7B and bit 7 of byte 0x7A of the character's buffer have been adjusted to designate a new period of walking or running. All that remains is to ensure that bit 7 of byte 0x7A is set if the character is a teacher (teachers usually walk slowly).
Input
A Contents of byte 0x7A of the character's buffer
H Character number (0x98-0xAB)
L 0x7A
6317 AND $50 Check bit 6 (always reset) and bit 4 (set for teachers) of byte 0x7A, and return (to move the character) if both are reset
6319 RET Z
631A SET 7,(HL) Signal: walk slowly (the norm for teachers)
631C RET Return to the routine at 6226 to move the character
Prev: 62D7 Up: Map Next: 631D