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>FUN 58 PENCODENCODEFUN 58 PENCOD●If the encoding end point (bN L−1) beyond the B15 of S, then continue extending towards S+1, S+2, but it mustnot exceed the range of specific type of operand. If it goes beyond this, then this instruction can only take thediscrete points between b0 and the highest limit into account for encoding.• The instruction at left is a high priority encode example.X058P.ENCODEN S :Ns :R90H/L NL : 36D : WY 0D=0ERRWhen X0 goes from 0 to 1, will take out toward left 36successive bits starting from B9 (b0) specified by Nswithin S, and perform high priority encoding (becauseH/L = 1). That is, starting from b35 (encoding end point),move right to find the first bit with the value of 1. Theresultant value of this example is b26, so the value of Dis 001AH=26, as shown in the diagram below.SD(b0)B15 B9 B0R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Y15 Y0X0=R1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WY0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0R2 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0B47 B44↑ B32 High byte always=26(b35)(b26)fill with "0"(encode value)The first bit with the value of 1for high priority encoding7-36

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

Saved successfully!

Ooh no, something went wrong!