UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
171
Examples
•
If Working Register R6 contains the value
31H
(00110001B), the statement:
SRA R6
Object Code: D0 E6
leaves the value
18H
(00011000) in Working Register R6, sets the Carry flag and
clears the Z, V and S flags.
•
If Register C6 contains the value
DFH
, and Register DFH contains the value
B8H
(10111000B), the statement:
SRA @C6
Object Code: D1 C6
leaves the value
DCH
(11011100B) in Register DFH, resets the C, Z and V flags and
sets the S flag.