Prev: 40744 Up: Map Next: 40840
40807: Handler: Room Images
Used by the routine at Handler_RoomExits.
Input
A Room image number
Handler_Images 40807 PUSH IX Stash IX, HL, DE and BC on the stack.
40809 PUSH HL
40810 PUSH DE
40811 PUSH BC
40812 LD E,A Copy the room image number from A into E.
40813 LD IX,(48085) IX=*Pointer_RoomImageOffsets.
40817 CALL GetTableEntry Call GetTableEntry.
40820 LD DE,(48085) HL+=*Pointer_RoomImageOffsets.
40824 ADD HL,DE
40825 PUSH HL Copy the room-image address from HL into IX (using the stack).
40826 POP IX
40828 CALL Print_RoomImage Call Print_RoomImage.
40831 CALL GetUserInput Call GetUserInput.
Restore the registers saved on entry to the routine and return.
40834 POP BC Restore BC, DE, HL and IX from the stack.
40835 POP DE
40836 POP HL
40837 POP IX
40839 RET Return.
Prev: 40744 Up: Map Next: 40840