Prev: 6541 Up: Map Next: 6557
6548: Paint Room Image
Used by the routine at RecolourRoomImage.
Copy one attribute through the 0200 bytes of the room picture.
Input
A Attribute byte
PaintRoomImage 6548 LD BC,$0200 Point HL at the attribute file and count 0200 bytes, keeping the attribute in E.
654B LD HL,$5800
654E LD E,A
PaintRoomImage_Loop 654F LD (HL),E Write that attribute through the rest of the picture.
6550 INC HL
6551 DEC BC
6552 LD A,B
6553 OR C
6554 JR NZ,PaintRoomImage_Loop
6556 RET Return.
Prev: 6541 Up: Map Next: 6557