Prev: 27206 Up: Map Next: 27262
27246: Make little boy no. 1 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).
Input
H 152 (little boy no. 1)
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 little boy no. 1's buffer
27247 AND 31
27249 ADD A,32
27251 LD (HL),A
27252 LD L,124 Place the address of the continual subcommand routine at 27126 into bytes 124 and 125 of little boy no. 1's buffer
27254 LD (HL),246
27256 INC L
27257 LD (HL),105
27259 JP 27115 Make little boy no. 1 go to a random location
Prev: 27206 Up: Map Next: 27262