|
Z86E3016PSG Datasheet, PDF (326/348 Pages) Zilog, Inc. – Z86E3016PSG | |||
|
◁ |
Z8 Family of Microcontrollers
User Manual
308
Flag
C
Z
S
V
D
H
Description
Set if the bit rotated from the least significant bit position was 1
(i.e., bit 0 was 1).
Set if the result is zero; cleared otherwise.
Set if the result bit 7 is set; cleared otherwise.
Always reset to 0.
Unaffected
Unaffected
Note: Address modes R or IR can be used to specify a 4-bit Working Register. In
this format, destination Working Register operand is speciï¬ed by adding
1110b (Eh) to the high nibble of the operand. For example, if Working
Register R12 (CH) is the destination operand, then ECh will be used as the
destination operand in the Op Code.
E
dst
Example
If the contents of Working Register R6 are 31h (00110001B), the state-
ment:
SRA R6
Op Code: D0 E6
leaves the value 98h (00011000) in Working Register R6. The C Flag is
set, and the Z, V, and S ï¬ags are cleared.
Example
If Register C6 contains the value DFh, and Register DFh contains the
value B8h (10111000B), the statement:
SRA @C6
Op Code: D1 C6
leaves the value DCh (11011100B) in Register DFh. The C, Z, and V
Flags are reset, and the S Flag is set.
Instruction Description
UM001602-0904
|
▷ |