![]() |
Routines |
| Prev: 6541 | Up: Map | Next: 6557 |
|
Used by the routine at RecolourRoomImage.
Copy one attribute through the 0200 bytes of the room picture.
|
||||||||
| 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 |