beautypg.com

Zilog Z8F0130 User Manual

Page 116

background image

eZ8

CPU Core

User Manual

UM012820-0810

BSWAP Instruction

101

Attributes

Escaped Mode Addressing

Using Escaped Mode Addressing, address mode R specifies a working
register. If the destination address is prefixed by

Eh

(

1110b

), a working

register is inferred. For example, if Working Register R12 (

Ch

) is the pre-

ferred destination operand, use

ECh

as the destination operand in the Op

Code. To access registers with addresses

E0h

to

EFh

, either set the Work-

ing Group Pointer,

RP[7:4]

, to

Eh

or use indirect addressing.

Sample Usage

If Register

27h

contains the value

53h

(

01010011b

), the following state-

ment leaves the value

CAh

(

11001010b

)

in Register 27, sets the S flag,

and clears the V flag. The C flag is undefined.

BSWAP 27

Object Code: D5 27

Mnemonic Destination

Op
Code
(Hex)

Operand 1 Operand 2 Operand 3

BSWAP

R1

D5

R1