![]() |
Routines |
| Prev: 26496 | Up: Map | Next: 26590 |
|
Scrolls the playarea attribute buffer right by one column to match the pixel scrolling. This keeps the colours aligned with the screen content when its scrolling horizontally.
|
||||
| ScrollAttributes_Right | 26508 | LD HL,23038 | Set the source address in HL to 23038 (attribute buffer location). | |
| 26511 | LD DE,23039 | And the destination address in DE to 23039 (attribute buffer location). | ||
| 26514 | LD B,16 | Set a counter in B to process 16 rows. | ||
| ScrollAttributes_Right_RowLoop | 26516 | LD C,255 | C=255. | |
| 26518 | LDD | Copy 31 bytes per row. This shifts the entire row right by 1 position. | ||
| 26520 | LDD | |||
| 26522 | LDD | |||
| 26524 | LDD | |||
| 26526 | LDD | |||
| 26528 | LDD | |||
| 26530 | LDD | |||
| 26532 | LDD | |||
| 26534 | LDD | |||
| 26536 | LDD | |||
| 26538 | LDD | |||
| 26540 | LDD | |||
| 26542 | LDD | |||
| 26544 | LDD | |||
| 26546 | LDD | |||
| 26548 | LDD | |||
| 26550 | LDD | |||
| 26552 | LDD | |||
| 26554 | LDD | |||
| 26556 | LDD | |||
| 26558 | LDD | |||
| 26560 | LDD | |||
| 26562 | LDD | |||
| 26564 | LDD | |||
| 26566 | LDD | |||
| 26568 | LDD | |||
| 26570 | LDD | |||
| 26572 | LDD | |||
| 26574 | LDD | |||
| 26576 | LDD | |||
| 26578 | LDD | |||
| 26580 | DEC HL | Skip the last column of the source row. | ||
| 26581 | DEC DE | Skip the last column of the destination row. | ||
| 26582 | DJNZ ScrollAttributes_Right_RowLoop | Decrease the row counter by one and loop back to ScrollAttributes_Right_RowLoop until all of the rows have been processed. | ||
| 26584 | LD HL,22528 | HL=22528 (attribute buffer location). | ||
| 26587 | JP FillNewAttributeColumn | Jump to FillNewAttributeColumn. | ||
| Prev: 26496 | Up: Map | Next: 26590 |