Prev: 29228 Up: Map Next: 29368
29250: 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 29250 LD IX,23712 Point IX at 23712.
29254 LD BC,(60960) Fetch *Position_X into BC.
29258 LD HL,(60962) Fetch *Position_Y into HL.
29261 LD DE,33668 Set the depth to 33668 in DE.
29264 LD A,(57847) Write *Model_Letter to offset 8 of the slot.
29267 LD (IX+8),A
29270 CALL Find_Empty_Slot_41 Call Find_Empty_Slot_41.
Draw the offset pieces.
29273 LD HL,(60960) Increase *Position_X by 16 and copy it to BC.
29276 LD DE,16
29279 ADD HL,DE
29280 LD (60960),HL
29283 LD B,H
29284 LD C,L
29285 LD HL,(60962) Fetch *Position_Y into HL.
29288 LD DE,57465 Call Find_Empty_Slot_23 with 57465 in DE.
29291 CALL Find_Empty_Slot_23
29294 LD BC,(60960) Fetch *Position_X into BC.
29298 LD HL,(60962) Set HL to *Position_Y plus 8.
29301 LD DE,8
29304 ADD HL,DE
29305 LD DE,57473 Call Find_Empty_Slot_23 with 57473 in DE.
29308 CALL Find_Empty_Slot_23
29311 LD BC,(60960) Fetch *Position_X into BC.
29315 LD HL,(60962) Fetch *Position_Y into HL.
29318 LD DE,16 Increase *Position_Y by 16.
29321 ADD HL,DE
29322 LD (60962),HL
29325 LD DE,57497 Call Find_Empty_Slot_23 with 57497 in DE.
29328 CALL Find_Empty_Slot_23
29331 LD HL,(60960) Set BC to *Position_X minus 8.
29334 LD DE,65528
29337 ADD HL,DE
29338 LD B,H
29339 LD C,L
29340 LD HL,(60962) Fetch *Position_Y into HL.
29343 LD DE,57489 Call Find_Empty_Slot_23 with 57489 in DE.
29346 CALL Find_Empty_Slot_23
29349 LD HL,(60960) Set BC to *Position_X minus 16.
29352 LD DE,65520
29355 ADD HL,DE
29356 LD B,H
29357 LD C,L
29358 LD HL,(60962) Fetch *Position_Y into HL.
29361 LD DE,57481 Call Find_Empty_Slot_23 with 57481 in DE.
29364 CALL Find_Empty_Slot_23
29367 RET Return.
Prev: 29228 Up: Map Next: 29368