摘要 |
PURPOSE: To shorten the processing time by collecting data on a bit map occupying plural bytes into a variable of multi-byte length to store it. CONSTITUTION: Respective picture element data of LSB7 to LSB0 are taken out from variables tmp1 and tmp2 shown in a state 1 and are stored in a variable work. In a state 2, OR between the shifted and masked variable tmp1 and the masked variable emp2 is operated to obtain the variable work. OR between the value of the variable work shown in the state 2 and the value obtained by shifting this value right by 7 bits is operated. As the result, the variable work is rearranged as shown in a state 3, and positions of LSB7, 6, 3, and 3 and positions of LSB5, 4, 1, and 0 are arranged in accordance with position relations after rotation. Finally, OR between the value of the variable work shown in the state 3 and the value obtained by shifting this value right by 14 bits is operated. As the result, the variable work is rearranged as shown in a state 4, and picture data of the first row after rotation is obtained in eight least significant bits of the variable work. |