13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Function <strong>Instruction</strong>Matrix <strong>Instruction</strong>sFun No. Mnemonic Functionality Fun No. Mnemonic Functionality120 MAND Matrix AND 126 MBRD Matrix Bit Read121 MOR Matrix OR 127 MBWR Matrix Bit Write122 MXOR Matrix XOR 128 MBSHF Matrix Bit Shift123 MXNR Matrix XNOR 129 MBROT Matrix Bit Rotate124 MINV Matrix Inverse 130 MBCNT Matrix Bit Count125 MCMP Matrix Compare●A matrix is comprised of 2 or more consecutive 16-bit registers. The number of registers comprising thematrix is called the matrix length (L). One matrix altogether has L×16 bits (points), and the basic unit of theobject for each operation is bit.● The matrix instructions treats the 16×L matrix bits as a set of series points( denoted by M 0 to M 16L-1 ).Whether the matrix is formed by register or not, the operation object is the bit not numerical value.●●●Matrix instructions are used mostly for discrete status processing such as moving, copying, comparing,searching, etc, of single point to multipoint (matrix), or multipoint-to-multipoint. These instructions areconvenient, important for application.Among the matrix instructions, most instruction need to use a 16-bit register as a pointer to points a specificpoint within the matrix. This register is known as the matrix pointer (Pr). Its effective range is 0 to 16L-1,which corresponds respectively to the bits M 0 to M 16L-1 within the matrix.Among the matrix operations, there are shift left/right, rotate left/right operations. We define the movementtoward higher bit is left direction, while the movement toward lower bit is right direction, as shown in thediagram below.Pr40M 40Pr=40, pointto M 40 ,←─ Width is 16 bit ─→M 15↓R0R1R2 1R3R4••••••••••••RL−1↑M 16L−1 (left)M M 0 (right)↓••••↑││lengthL││↓7-102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!