Prev: 47124 Up: Map Next: 47219
47132: Routine at B81C
Used by the routines at 39693, 40337, 40562, 42199, 42319, 43096, 43454, 43757, 44295, PlayerMovement and GamePlay_Start.
47132 PUSH IX Stash IX and BC on the stack.
47134 PUSH BC
47135 LD L,(IX+3)
47138 LD H,(IX+4)
47141 LD (38574),HL
47144 LD L,(IX+1)
47147 LD H,0
47149 LD BC,24678 HL=Layout.
47152 ADD HL,BC
47153 LD L,(HL)
47154 LD H,0
47156 ADD HL,HL
47157 LD BC,24934 HL=RoomTable.
47160 ADD HL,BC
47161 LD A,(HL)
47162 INC HL
47163 LD H,(HL)
47164 LD L,A
47165 PUSH HL
47166 POP IX
47168 POP BC
47169 PUSH IX
47171 CALL 47219 Call 47219.
47174 POP IX
47176 JR NC,47216
47178 PUSH DE
47179 LD A,(38575)
47182 LD D,A
47183 PUSH IX
47185 CALL 47219 Call 47219.
47188 POP IX Restore IX and DE from the stack.
47190 POP DE
47191 JR NC,47197
47193 LD A,(38574) E=38574.
47196 LD E,A
47197 PUSH DE Stash DE on the stack.
47198 LD A,(38574) E=38574.
47201 LD E,A
47202 PUSH IX
47204 CALL 47219 Call 47219.
47207 POP IX Restore IX and DE from the stack.
47209 POP DE
47210 JR NC,47216
47212 LD A,(38575) D=38575.
47215 LD D,A
47216 POP IX Restore IX from the stack.
47218 RET Return.
Prev: 47124 Up: Map Next: 47219