.75
P
Â
SRA
Shift Right Arithmetic
Example:The contents of working register R6 are 31H (00110001B). The following statement leaves the
value 98H (00011000B) in working register R6. The C flag is set to 1, and the Z, V, and S flags are set to 0.
SRA R6
Op Code: D0 E6
Example: Register C6 contains the value DFH. Register DFH contains the value B8H (10111000B). The
following statement leaves the value DCH (11011100B) in Register DFH. The C, Z, and V flags are reset to
0, and the S flag is set to 1.
SRA @C6
Op Code: D1 C6
Need help?
Do you have a question about the Z8 PLUS and is the answer not in the manual?
Questions and answers