Prev: 39655 Up: Map Next: 39682
39668: Check whether Magic Knight is moving into a new room and react if so
Used by the routine at 40008.
39668 LD A,(24840) Load A with Magic Knight's current x-coordinate (pixels)
39671 CP 3 If less than 3...
39673 JP C,39714 ...then skip to 39714 (move Magic Knight one room to the left if possible then return)
39676 CP 231 If more than 231...
39678 JP NC,39758 ...then skip to 39758 (move Magic Knight one room to the right if possible then return)
39681 RET Return
Prev: 39655 Up: Map Next: 39682