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 27 D PNEGNEGATION(Take the negative value)FUN 27 D PNEGD : Register to be negatedD may combine with V, Z, P0~P9 to serve indirect addressapplicationOperandRangeWY WM WS TMR CTR HR OR SR ROR DR XRWY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3904∣R3967R3968∣R4167R5000∣R8071D0∣D4095P0~P9D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○V、Z• When operation control "EN" = 1 or "EN↑" ( P instruction) from 0 to 1, negate (ie. calculate 2's complement)the value of the content of the register specified by D, and store it back in the original D register.• If the value of the content of D is negative, then the negation operation will make it positive.X0EN27PNEGR 0• The instruction at left negates the value of the R0register, and stores it back to R0.D R0 12345 3039H X0=D R0 −12345 CFC7H7-6

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

Saved successfully!

Ooh no, something went wrong!