![]() |
Routines |
Prev: BB3B | Up: Map | Next: BB51 |
Copies a given attribute byte to the 0200 bytes where the location image attribute bytes are (so clears the area).
|
||||||||
ClearRoomImage | BB42 | LD BC,$0200 | Set a counter in BC of 0200 bytes. | |||||
BB45 | LD HL,$5800 | Load 5800 (the beginning of the attribute buffer) into HL. | ||||||
BB48 | LD E,A | Copy the attribute byte into the E register. | ||||||
ClearRoomImage_Loop | BB49 | LD (HL),E | Write the byte to the attribute buffer. | |||||
BB4A | INC HL | Increment the attribute buffer pointer by one. | ||||||
BB4B | DEC BC | Decrease the room image byte counter by one. | ||||||
BB4C | LD A,B | Jump back to ClearRoomImage_Loop until the whole room image has been covered. | ||||||
BB4D | OR C | |||||||
BB4E | JR NZ,ClearRoomImage_Loop | |||||||
BB50 | RET | Return. |
Prev: BB3B | Up: Map | Next: BB51 |