Arithmetic // SRA (Shift Right Arithmetic)
An arithmetic shift right 1 bit position is performed on the contents of operand m. The contents of bit 0 are copied to the Carry flag and the previous contents of bit 7 remain unchanged. Bit 0 is the least-significant bit.
Index Register IX contains 1000h and memory location 1003h contains the following data. 76534 2 10 10111 0 00 Upon the execution of an SRA (IX+3h) instruction, memory location 1003h and the Carry flag now contain: 76534 2 10C 0 101 1 1 10 0
sra b 0xCB28,
2 bytes, 8Tsra c 0xCB29,
2 bytes, 8Tsra d 0xCB2A,
2 bytes, 8Tsra e 0xCB2B,
2 bytes, 8Tsra h 0xCB2C,
2 bytes, 8Tsra l 0xCB2D,
2 bytes, 8Tsra (hl) 0xCB2E,
2 bytes, 15Tsra a 0xCB2F,
2 bytes, 8Tsra (ix+*),b 0xDDCB**28,
4 bytes, 23Tsra (ix+*),c 0xDDCB**29,
4 bytes, 23Tsra (ix+*),d 0xDDCB**2A,
4 bytes, 23Tsra (ix+*),e 0xDDCB**2B,
4 bytes, 23Tsra (ix+*),h 0xDDCB**2C,
4 bytes, 23Tsra (ix+*),l 0xDDCB**2D,
4 bytes, 23Tsra (ix+*) 0xDDCB**2E,
4 bytes, 23Tsra (ix+*),a 0xDDCB**2F,
4 bytes, 23Tsra (iy+*),b 0xFDCB**28,
4 bytes, 23Tsra (iy+*),c 0xFDCB**29,
4 bytes, 23Tsra (iy+*),d 0xFDCB**2A,
4 bytes, 23Tsra (iy+*),e 0xFDCB**2B,
4 bytes, 23Tsra (iy+*),h 0xFDCB**2C,
4 bytes, 23Tsra (iy+*),l 0xFDCB**2D,
4 bytes, 23Tsra (iy+*) 0xFDCB**2E,
4 bytes, 23Tsra (iy+*),a 0xFDCB**2F,
4 bytes, 23T