Prev: B814 Up: Map Next: B873
B81C: Routine at B81C
Used by the routines at 9B0D, 9D91, 9E72, A4D7, A54F, A858, A9BE, AAED, AD07, PlayerMovement and GamePlay_Start.
B81C PUSH IX Stash IX and BC on the stack.
B81E PUSH BC
B81F LD L,(IX+$03)
B822 LD H,(IX+$04)
B825 LD ($96AE),HL
B828 LD L,(IX+$01)
B82B LD H,$00
B82D LD BC,$6066 HL=Layout.
B830 ADD HL,BC
B831 LD L,(HL)
B832 LD H,$00
B834 ADD HL,HL
B835 LD BC,$6166 HL=RoomTable.
B838 ADD HL,BC
B839 LD A,(HL)
B83A INC HL
B83B LD H,(HL)
B83C LD L,A
B83D PUSH HL
B83E POP IX
B840 POP BC
B841 PUSH IX
B843 CALL $B873 Call B873.
B846 POP IX
B848 JR NC,$B870
B84A PUSH DE
B84B LD A,($96AF)
B84E LD D,A
B84F PUSH IX
B851 CALL $B873 Call B873.
B854 POP IX Restore IX and DE from the stack.
B856 POP DE
B857 JR NC,$B85D
B859 LD A,($96AE) E=96AE.
B85C LD E,A
B85D PUSH DE Stash DE on the stack.
B85E LD A,($96AE) E=96AE.
B861 LD E,A
B862 PUSH IX
B864 CALL $B873 Call B873.
B867 POP IX Restore IX and DE from the stack.
B869 POP DE
B86A JR NC,$B870
B86C LD A,($96AF) D=96AF.
B86F LD D,A
B870 POP IX Restore IX from the stack.
B872 RET Return.
Prev: B814 Up: Map Next: B873