Prev: 41325 Up: Map Next: 41416
41396: Routine at A1B4
Used by the routines at 41416, 41426, 41437 and Handler_RoomExits.
41396 PUSH DE Stash DE and BC on the stack.
41397 PUSH BC
41398 EX DE,HL Exchange the DE and HL registers.
41399 LD L,A L=A.
41400 LD H,0 H=0.
41402 CALL 41301 Call 41301.
41405 ADD HL,DE HL+=DE.
41406 LD B,C B=C.
41407 INC B Increment B by one.
41408 XOR A A=0.
41409 SCF Set the carry flag.
41410 RLA RLA.
41411 DJNZ 41410 Decrease counter by one and loop back to 41410 until counter is zero.
41413 POP BC Restore BC and DE from the stack.
41414 POP DE
41415 RET Return.
Prev: 41325 Up: Map Next: 41416