![]() |
Routines |
Prev: 6780 | Up: Map | Next: 67DE |
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 | 678C | LD HL,$59FE | Set the source address in HL to 59FE (attribute buffer location). | |
678F | LD DE,$59FF | And the destination address in DE to 59FF (attribute buffer location). | ||
6792 | LD B,$10 | Set a counter in B to process 10 rows. | ||
ScrollAttributes_Right_RowLoop | 6794 | LD C,$FF | C=FF. | |
6796 | LDD | Copy 1F bytes per row. This shifts the entire row right by 01 position. | ||
6798 | LDD | |||
679A | LDD | |||
679C | LDD | |||
679E | LDD | |||
67A0 | LDD | |||
67A2 | LDD | |||
67A4 | LDD | |||
67A6 | LDD | |||
67A8 | LDD | |||
67AA | LDD | |||
67AC | LDD | |||
67AE | LDD | |||
67B0 | LDD | |||
67B2 | LDD | |||
67B4 | LDD | |||
67B6 | LDD | |||
67B8 | LDD | |||
67BA | LDD | |||
67BC | LDD | |||
67BE | LDD | |||
67C0 | LDD | |||
67C2 | LDD | |||
67C4 | LDD | |||
67C6 | LDD | |||
67C8 | LDD | |||
67CA | LDD | |||
67CC | LDD | |||
67CE | LDD | |||
67D0 | LDD | |||
67D2 | LDD | |||
67D4 | DEC HL | Skip the last column of the source row. | ||
67D5 | DEC DE | Skip the last column of the destination row. | ||
67D6 | 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. | ||
67D8 | LD HL,$5800 | HL=5800 (attribute buffer location). | ||
67DB | JP FillNewAttributeColumn | Jump to FillNewAttributeColumn. |
Prev: 6780 | Up: Map | Next: 67DE |