Zilog Z86193 User Manual
Page 199
Z8
®
CPU
User Manual
UM001604-0108
Instruction Description
192
Address modes R or IR can be used to specify a 4-bit Working Register. In this format, the
source or destination Working Register operand is specified by adding
1110b
(
Eh
) to the
high nibble of the operand. For example, if Working Register R12 (CH) is the destination
operand, then
ECh
is used as the destination operand in the Op Code.
Example 1
The statement:
LD R15, #34h
Op Code: FC 34
loads the value
34h
into Working Register R15.
Example 2
If Register
34h
contains the value
FCh
, the statement:
LD R14, 34h
Op Code: F8 34
loads the value
FCh
into Working Register R15. The contents of Register
34h
are not
affected.
Example 3
If Working Register R14 contains the value
45h
, the statement:
LD 34h, R14
Op Code: E9 34
loads the value
45h
into Register
34h
. The contents of Working Register R14 are not
affected.
Example 4
If Working Register R12 contains the value
34h
, and Register
34h
contains the value
FFh
,
the statement:
LD R13, @R12
Op Code: E3 DC
loads the value
FFh
into Working Register R13. The contents of Working Register R12
and Register R34 are not affected.
Example 5
If Working Register R13 contains the value
45h
, and Working Register R12 contains the
value
00h
the statement:
LD @R13, R12
Op Code: F3 DC
E
src
or
E
dst
Note:
- Z86233 Z86243 Z86733 Z86743 Z86C02 Z86C04 Z86C08 Z86C15 Z86C21 Z86C30 Z86C31 Z86C33 Z86C36 Z86C40 Z86C43 Z86C61 Z86C62 Z86C63 Z86C65 Z86C83 Z86C90 Z86C91 Z86C93 Z86C96 Z86E02 Z86E03 Z86E04 Z86E06 Z86E07 Z86E08 Z86E15 Z86E21 Z86E30 Z86E31 Z86E33 Z86E34 Z86E40 Z86E43 Z86E44 Z86E61 Z86E63 Z86E83 Z86K15 Z86L02 Z86L04 Z86L08 Z86L16 Z8E000 Z8E001 Z8PE003