EasyManua.ls Logo

ZiLOG Z8 - CounterTimer Operation Modes

ZiLOG Z8
166 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
",
SWAP
dst
Instruction
For.at:
OPC
Operation:
Flags:
Exmaple:
Note:
SWAP
Swap Nibbles
OPC
Address
Mode
Cycles
(Hex)
dst
I
I
dst
B
ro
R
B
F1
IR
dst(O - 3)
<-->
dst(4
-
7)
The
contents
of
the
lower four
bits
and upper four
bits
of
the
destination
operand
are
swapped.
C:
Undefined
Z:
Set
if
the
result
is
zero;
cleared
otherwise
V:
Undefined
S:
Set
if
the
result
bit
7
is
set;
cleared
otherwise
H:
Unaffected
0:
Unaffected
Suppose
the
register
named
BCD_nperands
contains
~B3
(10110011).
The
statement
SWAP
BCD_Operands
will
leave
the
value
%38
(00111011)
in
the
register.
The
Z and S
flags
are
cleared.
When
used
to
specify
a
4-bit
working-register
address,
address
modes
R
or
IR
use
the
format:
E
dst
5-47

Table of Contents

Other manuals for ZiLOG Z8

Related product manuals