bsw


Byte swap of word data.

[Syntax]

-

bsw reg1, reg2

[Function]

Byte-swaps the register value specified by the first operand and stores the result in the register specified by the second operand.

[Description]

The assembler generates one bsw machine instruction.

[Flag]

CY

1 if one or more bytes of the word in the register is 0, 0 if not

OV

0

S

1 if the word data MSB of the result is 1, 0 if not

Z

1 if the word data of the result is 1, 0 if not

SAT

---