beautypg.com

Bswap – Zilog Z8F0130 User Manual

Page 115

background image

eZ8

CPU Core

User Manual

UM012820-0810

BSWAP Instruction

100

BSWAP

Definition

Bit Swap.

Syntax

BSWAP dst

Operation

dst[7:0]

 dst[0:7]

Description

For this new eZ8 instruction, the contents of the register are bit-flipped, as
shown:

dst[7]

 dst[0]

dst[6]

 dst[1]

dst[5]

 dst[2]

dst[4]

 dst[3]

Flags

C

Undefined

Z

Set if the result is zero; reset otherwise

S

Set if the result is negative; reset otherwise

V

Reset to 0

D

Unaffected

H

Unaffected