Prev: 55819 Up: Map Next: 55853
55836: Cheat / debug routine: Increase Magic Knight's current room index, wrapping around to zero if above 24
Used by the routine at 55768.
55836 LD A,(23701) Increase index of Magic Knight's current room...
55839 INC A ...
55840 LD (23701),A ...
55843 CP 25 If new room index is 25...
55845 JR NZ,55814 ...then draw Magic Knight's current room then jump back into cheat routine main loop
55847 XOR A Set new room index to zero...
55848 LD (23701),A ...
55851 JR 55814 Draw Magic Knight's current room then jump back into cheat routine main loop
Prev: 55819 Up: Map Next: 55853