Skool Daze Routines
Prev: 27206 Up: Map Next: 27262
27246: Make character go to a place at random and trip people up on the way
Used by command list 204 (which is used only by little boy no. 1). The address of this routine is also placed into bytes 99 and 100 of the other little boys' character buffers by the routine at 27266.
H Character number of little boy (152-162)
L 122
27246 LD A,(HL) Reset bit 6 (do not walk slowly continuously) and bit 7 (walk fast) and set bit 5 (walk fast continuously) of byte 122 of the boy's buffer
27247 AND 31
27249 ADD A,32
27251 LD (HL),A
27252 LD L,124 Place the address of the routine at 27126 into bytes 124 and 125 of the character's buffer
27254 LD (HL),246
27256 INC L
27257 LD (HL),105
27259 JP 27115 Make this little boy go to a random location
Prev: 27206 Up: Map Next: 27262