Prev: 37748 Up: Map Next: 37834
37780: Routine at 9394
Used by the routines at 34161, GameStart, 35367 and 37672.
37780 LD IX,(28019) IX=28019.
37784 LD A,(IX+0) Write *IX+0 to *CurrentRoomIndex.
37787 LD (28042),A
37790 LD A,(IX+9) Write *IX+9 to *28124.
37793 LD (28124),A
This entry point is used by the routines at 38295, 40787, 42638, 51598, 53943 and 54952.
37796 LD A,(IX+0) A=*IX+0.
37799 LD E,A E=A.
37800 ADD A,A A+=A.
37801 ADD A,A A+=A.
37802 ADD A,E A+=E.
37803 LD C,A C=A.
37804 LD B,0 B=0.
37806 LD HL,(28013) HL=*28013.
37809 ADD HL,BC HL+=BC.
37810 LD (28104),HL Write HL to *28104.
37813 LD C,5 C=5.
37815 LD DE,28063 DE=TempStore_RoomDimension_Depth.
37818 LDIR Copy 5 bytes of data from HL to DE.
37820 LD A,(28064) E=*TempStore_RoomDimension_XCoordinateLeftEdge.
37823 LD E,A
37824 LD A,(28065) A=*28065.
37827 SUB E A-=E.
37828 ADD A,100 A+=100.
37830 LD (28068),A Write A to *28068.
37833 RET Return.
Prev: 37748 Up: Map Next: 37834