beautypg.com

Yaskawa MP940 User Manual

Page 40

background image

2.3 Function Lists

2-17

2

Data Operation
Instructions

BIT ROTATION
RIGHT

ROTR

Bit-addr Count Width
ROTR MB00100A

N=1 W=20

MOVE BITS

MOVB

Source Desti. Width
MOVB MB00100A

MB00200A W=20

MOVE WORD

MOVW

Source Disti. Width
MOVW MB00100

MB00200 W=20

EXCHANGE

XCHG

Source1 Source2 Width
XCHG MB00100

MB00200 W=20

SET WORDS

SETW

Desti. Data Width
SETW MW00200 D=00000 W=20

BYTE-TO-
WORD EXPAN-
SION

BEXTD

Expands the byte data stored in the word registers into words.
BEXTD MW00100 to MW00200 B=10

WORD-TO-
BYTE COM-
PRESSION

BPRESS

Collects the lower bytes of the word data stored in the word register
area.
BPRESS MW00100 to MW00200 B=10

BINARY
SEARCH

BSRCH

Retrieves the register position that matches the data within the desig-
nated register range.
BSRC MW00000 W=20 D=100 R=MW00100

SORT

SORT

Sorts registers within the designated register range.
SORT MW00000 W=100

BIT SHIFT
LEFT

SHFTL

Shifts the designated bit strings to the left.
SHFTL MB00100A N=1 W=20

BIT SHIFT
RIGHT

SHFTR

Shifts the designated bit strings to the right.
SHFTR MB00100A N=1 W=2

COPY WORD

COPYW

Copies the designated register range.
COPYW MW00100

MW00200 W=20

BYTE SWAP

BSWAP

The upper and lower bytes of the designated word are swapped.
BSWAP MW00100

Type

Name

Symbol

Description