Prev: 28841 Up: Map Next: 28960
28882: Room drawing: Draw picture in frame (2)
This routine draws the picture in a frame at 59748.
Used by the routine at 27865.
28882 CALL 29441 Read two bytes AFTER HL position into BC, advancing HL before both reads
28885 PUSH HL Store HL
28886 PUSH BC Store BC
28887 LD A,7 Store 7 (white INK, black PAPER) at 23695...
28889 LD (23695),A ...
28892 LD A,64 Set current terrain interaction parameter to preserve-attribute...
28894 LD (23483),A ...
28897 LD A,60 Draw picture in frame (2) [graphic data at 59748]...
28899 CALL 29960 ...
28902 POP BC Restore BC
28903 CALL 36569 Update virtual attribute cursor storage location to position (C, B) and point HL to corresponding attribute file address
28906 PUSH HL Transfer memory address of attribute cursor...
28907 POP IX ...into IX
The sun in the picture is 34 bytes, or 1 character down and 2 characters right from top-left corner of picture.
28909 LD (IX+34),70 Set attribute of sun in picture to 70 (yellow INK, black PAPER, BRIGHT)
28913 LD A,67 Set attribute to 67 (magenta INK, black PAPER, BRIGHT) for...
28915 LD (IX+37),A ...magenta castle in picture (six characters, 3 × 2)...
28918 LD (IX+38),A ...
28921 LD (IX+39),A ...
28924 LD (IX+69),A ...
28927 LD (IX+70),A ...
28930 LD (IX+71),A ...
28933 LD A,70 Set attribute to 70 (yellow INK, black PAPER, BRIGHT) for...
28935 LD (IX+97),A ...sand / yellow land (7 characters, 7 × 1)...
28938 LD (IX+98),A ...
28941 LD (IX+99),A ...
28944 LD (IX+100),A ...
28947 LD (IX+101),A ...
28950 LD (IX+102),A ...
28953 LD (IX+103),A ...
28956 POP HL Restore HL
28957 JP 28060 Return to room drawing routine and process next data
Prev: 28841 Up: Map Next: 28960