![]() |
Routines |
Prev: 47931 | Up: Map | Next: 47953 |
Copies a given attribute byte to the 512 bytes where the location image attribute bytes are (so clears the area).
|
||||||||
ClearRoomImage | 47938 | LD BC,512 | Set a counter in BC of 512 bytes. | |||||
47941 | LD HL,22528 | Load 22528 (the beginning of the attribute buffer) into HL. | ||||||
47944 | LD E,A | Copy the attribute byte into the E register. | ||||||
ClearRoomImage_Loop | 47945 | LD (HL),E | Write the byte to the attribute buffer. | |||||
47946 | INC HL | Increment the attribute buffer pointer by one. | ||||||
47947 | DEC BC | Decrease the room image byte counter by one. | ||||||
47948 | LD A,B | Jump back to ClearRoomImage_Loop until the whole room image has been covered. | ||||||
47949 | OR C | |||||||
47950 | JR NZ,ClearRoomImage_Loop | |||||||
47952 | RET | Return. |
Prev: 47931 | Up: Map | Next: 47953 |