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 42 D PBITMVBIT MOVEFUN 42 D PBITMVLadder symbolS : Source data to be moved42DP.BITMVNs : Assign Ns bit within S as source bitMove controlENS :ERRN value errorD : Destination register to be movedNs :Nd : Assign Nd bit within D as target bitD :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~31 ○D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○Nd ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 0~31 ○V、Z• When move control "EN" = 1 or "EN↑" ( P instruction) changes from 0 to 1, will move the bit status specifiedby Ns within S into the bit specified by Nd within D.• When the operand is 16 bit, the effective range of N is 0~15. For 32 bit ( D instruction) operand the effectiverange is 0~31. N beyond this range will set the N value error flag "ERR" to 1, and do not carry out thisinstruction.X042P.BITMVEN S : WX 0Ns : 11D : R 0ERR• The instruction at left moves the status of B11 (X11)within S into the B7 position within D. Except bit B7,other bits within D does not change.Nd : 7X15 X11 X0S WX0 1Ns=11─────Nd=7 ──────── X0=D R0 1B15 B7 B07-17

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

Saved successfully!

Ooh no, something went wrong!