Arithmetic // SRA (Shift Right Arithmetic)
0xCB2C - u52012
The contents of h are shifted right one bit position. The contents of bit 0 are copied to the carry flag and the previous contents of bit 7 are unchanged.
| T States | Bytes |
|---|---|
| 8 | 2 |
S affected as defined
Z affected as defined
H reset
P/V detects parity
N reset
C affected as defined
{
"flags": {
"S": "affected as defined",
"Z": "affected as defined",
"H": "reset",
"P/V": "detects parity",
"N": "reset",
"C": "affected as defined"
},
"operation": "sra h",
"opcode": "sra",
"operand": [
"h"
],
"code": "CB2C",
"bytes": 2,
"time": 8,
"description": "The contents of h are shifted right one bit position. The contents of bit 0 are copied to the carry flag and the previous contents of bit 7 are unchanged.",
"category": "Arithmetic",
"subCategory": "SRA (Shift Right Arithmetic)"
}