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 28 D PABSABSOLUTE(Take the absolute value)FUN 28 D PABSD : Register to be taken absolute valueD 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, calculate the absolute value of thecontent of the register specified by D, and write it back into the original D register.X0EN28DPABSR 0• The instruction at left calculates the absolute value ofthe R0 register, and stores it back in R0.D R1 R0 −12345 CFC7H X0=D R1 R0 12345 3039H7-7

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

Saved successfully!

Ooh no, something went wrong!