Prev: 52003 Up: Map Next: 52162
52081: Shift View Right Nibble
Shifts the screen buffer to the right by four pixels, by rotating the nibbles of each row.
ShiftViewRightNibble 52081 LD B,128 Set the row count to 128.
52083 LD HL,58811 Point HL at ScreenBuffer.
ShiftViewRightNibble_Loop 52086 XOR A Clear the nibble shifted in from the left and shift the row four pixels to the right.
52087 RRD
52089 INC HL
52090 RRD
52092 INC HL
52093 RRD
52095 INC HL
52096 RRD
52098 INC HL
52099 RRD
52101 INC HL
52102 RRD
52104 INC HL
52105 RRD
52107 INC HL
52108 RRD
52110 INC HL
52111 RRD
52113 INC HL
52114 RRD
52116 INC HL
52117 RRD
52119 INC HL
52120 RRD
52122 INC HL
52123 RRD
52125 INC HL
52126 RRD
52128 INC HL
52129 RRD
52131 INC HL
52132 RRD
52134 INC HL
52135 RRD
52137 INC HL
52138 RRD
52140 INC HL
52141 RRD
52143 INC HL
52144 RRD
52146 INC HL
52147 RRD
52149 INC HL
52150 RRD
52152 INC HL
52153 RRD
52155 INC HL
52156 RRD
52158 INC HL
52159 DJNZ ShiftViewRightNibble_Loop Decrease the row count and jump back until every row of the buffer has been shifted.
52161 RET Return.
Prev: 52003 Up: Map Next: 52162