Prev: 39971 Up: Map Next: 40008
39998: Set large yellow creature's mode to "returning home", move one step closer to home and return
Used by the routine at 39776.
Input
HL Address of creature's flags
IY Address of complex state data for creature
39998 LD (HL),0 Set creature's mode to "returning home"
40000 LD (IY+1),2 Set creature's depth to 2
40004 LD A,122 Move creature one step closer to x (left) = 113, y (top) > 122...
40006 JR 40010 ...and return
Prev: 39971 Up: Map Next: 40008