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 45 D PXCHGEXCHANGEFUN 45 D PXCHGDa : Register a to be exchangedDb : Register b to be exchangedDa, Db may combine with V, Z, P0~P9 to serve indirectaddress applicationOperandRangeWY WM WS TMR CTR HR OR SR ROR DR XRWY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3904∣R3967R3968∣R4167R5000∣R8071D0∣D4095V、ZP0~P9Da ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○Db ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○• When exchange control "EN" = 1 or "EN↑" ( P instruction) has a transition from 0 to 1, will exchanges thecontents of register Da and register Db in 16 bits or 32 bits ( D instruction) format.X0EN45P.XCHGDa : R 0Db : R 1• The instruction at left exchanges the contents of the16-bit R0 and R1 registers.B15B0Da R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0Db R1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 X0=B15B0Da R0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1Db R1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 07-20

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

Saved successfully!

Ooh no, something went wrong!