Prev: CB23 Up: Map Next: CBC2
CB71: Shift View Right Nibble
Shifts the screen buffer to the right by four pixels, by rotating the nibbles of each row.
ShiftViewRightNibble CB71 LD B,$80 Set the row count to 80.
CB73 LD HL,$E5BB Point HL at ScreenBuffer.
ShiftViewRightNibble_Loop CB76 XOR A Clear the nibble shifted in from the left and shift the row four pixels to the right.
CB77 RRD
CB79 INC HL
CB7A RRD
CB7C INC HL
CB7D RRD
CB7F INC HL
CB80 RRD
CB82 INC HL
CB83 RRD
CB85 INC HL
CB86 RRD
CB88 INC HL
CB89 RRD
CB8B INC HL
CB8C RRD
CB8E INC HL
CB8F RRD
CB91 INC HL
CB92 RRD
CB94 INC HL
CB95 RRD
CB97 INC HL
CB98 RRD
CB9A INC HL
CB9B RRD
CB9D INC HL
CB9E RRD
CBA0 INC HL
CBA1 RRD
CBA3 INC HL
CBA4 RRD
CBA6 INC HL
CBA7 RRD
CBA9 INC HL
CBAA RRD
CBAC INC HL
CBAD RRD
CBAF INC HL
CBB0 RRD
CBB2 INC HL
CBB3 RRD
CBB5 INC HL
CBB6 RRD
CBB8 INC HL
CBB9 RRD
CBBB INC HL
CBBC RRD
CBBE INC HL
CBBF DJNZ ShiftViewRightNibble_Loop Decrease the row count and jump back until every row of the buffer has been shifted.
CBC1 RET Return.
Prev: CB23 Up: Map Next: CBC2