Prev: 722C Up: Map Next: 72B8
7242: Place Letter
Used by the routines at Show_Briefing_One and Initialise_Slot_Table.
Draws the letter from *Model_Letter at *Position_X and *Position_Y.
Place the letter.
Place_Letter 7242 LD IX,$5CA0 Point IX at 5CA0.
7246 LD BC,($EE20) Fetch *Position_X into BC.
724A LD HL,($EE22) Fetch *Position_Y into HL.
724D LD DE,$8384 Set the depth to 8384 in DE.
7250 LD A,($E1F7) Write *Model_Letter to offset 08 of the slot.
7253 LD (IX+$08),A
7256 CALL Find_Empty_Slot_41 Call Find_Empty_Slot_41.
Draw the offset pieces.
7259 LD HL,($EE20) Increase *Position_X by 10 and copy it to BC.
725C LD DE,$0010
725F ADD HL,DE
7260 LD ($EE20),HL
7263 LD B,H
7264 LD C,L
7265 LD HL,($EE22) Fetch *Position_Y into HL.
7268 LD DE,$E079 Call Find_Empty_Slot_23 with E079 in DE.
726B CALL Find_Empty_Slot_23
726E LD BC,($EE20) Fetch *Position_X into BC.
7272 LD HL,($EE22) Set HL to *Position_Y plus 08.
7275 LD DE,$0008
7278 ADD HL,DE
7279 LD DE,$E081 Call Find_Empty_Slot_23 with E081 in DE.
727C CALL Find_Empty_Slot_23
727F LD BC,($EE20) Fetch *Position_X into BC.
7283 LD HL,($EE22) Fetch *Position_Y into HL.
7286 LD DE,$0010 Increase *Position_Y by 10.
7289 ADD HL,DE
728A LD ($EE22),HL
728D LD DE,$E099 Call Find_Empty_Slot_23 with E099 in DE.
7290 CALL Find_Empty_Slot_23
7293 LD HL,($EE20) Set BC to *Position_X minus 08.
7296 LD DE,$FFF8
7299 ADD HL,DE
729A LD B,H
729B LD C,L
729C LD HL,($EE22) Fetch *Position_Y into HL.
729F LD DE,$E091 Call Find_Empty_Slot_23 with E091 in DE.
72A2 CALL Find_Empty_Slot_23
72A5 LD HL,($EE20) Set BC to *Position_X minus 10.
72A8 LD DE,$FFF0
72AB ADD HL,DE
72AC LD B,H
72AD LD C,L
72AE LD HL,($EE22) Fetch *Position_Y into HL.
72B1 LD DE,$E089 Call Find_Empty_Slot_23 with E089 in DE.
72B4 CALL Find_Empty_Slot_23
72B7 RET Return.
Prev: 722C Up: Map Next: 72B8