![]() |
Routines |
| Prev: 26413 | Up: Map | Next: 26496 |
|
Scrolls the playarea attribute buffer left by one column to match the pixel scrolling. This keeps the colours aligned with the screen content when its scrolling horizontally.
|
||||
| ScrollAttributes_Left | 26414 | LD HL,22529 | Set the source address in HL to 22529 (attribute buffer location). | |
| 26417 | LD DE,22528 | And the destination address in DE to 22528 (attribute buffer location). | ||
| 26420 | LD B,16 | Set a counter in B to process 16 rows. | ||
| ScrollAttributes_Left_RowLoop | 26422 | LD C,255 | C=255. | |
| 26424 | LDI | Copy 31 bytes per row. This shifts the entire row left by 1 position. | ||
| 26426 | LDI | |||
| 26428 | LDI | |||
| 26430 | LDI | |||
| 26432 | LDI | |||
| 26434 | LDI | |||
| 26436 | LDI | |||
| 26438 | LDI | |||
| 26440 | LDI | |||
| 26442 | LDI | |||
| 26444 | LDI | |||
| 26446 | LDI | |||
| 26448 | LDI | |||
| 26450 | LDI | |||
| 26452 | LDI | |||
| 26454 | LDI | |||
| 26456 | LDI | |||
| 26458 | LDI | |||
| 26460 | LDI | |||
| 26462 | LDI | |||
| 26464 | LDI | |||
| 26466 | LDI | |||
| 26468 | LDI | |||
| 26470 | LDI | |||
| 26472 | LDI | |||
| 26474 | LDI | |||
| 26476 | LDI | |||
| 26478 | LDI | |||
| 26480 | LDI | |||
| 26482 | LDI | |||
| 26484 | LDI | |||
| 26486 | INC HL | Skip the last column of the source row. | ||
| 26487 | INC DE | Skip the last column of the destination row. | ||
| 26488 | DJNZ ScrollAttributes_Left_RowLoop | Decrease the row counter by one and loop back to ScrollAttributes_Left_RowLoop until all of the rows have been processed. | ||
| 26490 | LD HL,22559 | HL=22559 (attribute buffer location). | ||
| 26493 | JP FillNewAttributeColumn | Jump to FillNewAttributeColumn. | ||
| Prev: 26413 | Up: Map | Next: 26496 |