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 43 D PNBMVNIBBLE MOVEFUN 43 D PNBMVMove controlENLadder symbol43DP.NBMVS :Ns :ERRN value errorS : Source data to be movedNs: Assign Ns nibble within S as source nibbleD : Destination register to be movedNd: Assign Nd nibble within D as target nibbleD :Nd :S, Ns, D, Nd may combine with V, Z, P0~P9 toserve indirect address applicationOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D409516/32-bit+/-numberP0~P9S ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Ns ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 0~7 ○D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○Nd ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 0~7 ○V、Z• When move control "EN" = 1 or "EN↑" ( P instruction)has a transition from 0 to 1, will move the Ns’th nibblefrom within S to the nibble specified by Nd within D. (A nibble is comprised by 4 bits. Starting from the lowestbit of the register, B0, each successive 4 bits form a nibble, so B0~B3 form nibble 0, B4~B7 form nibble 1,etc...)• When the operand is 16 bit, the effective range of Ns or Nd is 0~3. For 32 bit ( D instruction) operand therange is 0~7. Beyond this range, will set the N value error flag "ERR" to 1 , and do not carry out thisinstruction.X043P.NBMVEN S : R 0Ns : 2ERR• The instruction at left moves the third nibble NB2(B8~B11) within S to the first nibble NB1 (B4~B7) withinD. Other nibbles within D remain unchanged.D :R 1Nd : 1B15S R0 1 1 0 1B0NB3 NB2 NB1 NB0Ns=2 ───────Nd=1 ───────── X0=NB3 NB2 NB1 NB0D R1 1 1 0 1B15B07-18

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

Saved successfully!

Ooh no, something went wrong!