Prev: 25921 Up: Map Next: 25943
25928: Paint Room Image
Used by the routine at RecolourRoomImage.
Copy one attribute through the 512 bytes of the room picture.
Input
A Attribute byte
PaintRoomImage 25928 LD BC,512 Point HL at the attribute file and count 512 bytes, keeping the attribute in E.
25931 LD HL,22528
25934 LD E,A
PaintRoomImage_Loop 25935 LD (HL),E Write that attribute through the rest of the picture.
25936 INC HL
25937 DEC BC
25938 LD A,B
25939 OR C
25940 JR NZ,PaintRoomImage_Loop
25942 RET Return.
Prev: 25921 Up: Map Next: 25943