13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Advanced Function <strong>Instruction</strong>FUN 44 D PBYMVBYTE MOVEFUN 44 D PBYMVS : Source data to be movedNs : Assign Ns byte within S as source byteD : Destination register to be movedNd : Assign Nd byte within D as target byteS, 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~3 ○D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○Nd ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 0~3 ○V、Z• When move control "EN" = 1 or "EN↑" ( P instruction) has a transition from 0 to 1, move Nsth byte within Sto Ndth byte position within D. (A byte is comprised of 8 bits. Starting from the lowest bit of the register, B0,each successive eight bits form a byte, so B0~B7 form byte 0, B8~B15 form byte 1, etc...)• When the operand is 16 bit, the effective range of Ns or Nd is 0~1. For 32 bit ( D instruction) operand, therange is 0~3. Beyond this range, will set the N value error flag "ERR" to 1, and do not carry out thisinstruction.X044DP.BYMVEN S : R 0 ERRNs : 2D : R 2Nd : 1• The instruction at left moves the third byte (B16~B23)within S (32 bit register composed of R1R0), to the firstbyte within D (32 bit register composed of R3R2). Otherbytes within D remain unchanged.B15S R1 R0 1 0 1 1 1 0 1 1B0Byte3 Byte2 Byte1 Byte0Ns=2────────────── X0=Nd=1────────────────────Byte3 Byte2 Byte1 Byte0D R3 R2 1 0 1 1 1 0 1 1B31B07-19

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

Saved successfully!

Ooh no, something went wrong!