![]() |
|
| << Previous | Next >> | |
| | |
SRA (IX+d)
SRA (IY+d) Shift Right Arithmetic Rabbit 2000/3000/4000/5000 Instruction
DD CB d 2E SRA (IX+d) (IX+d) = {(IX+d)[7],(IX+d)[7,1]}
CF = (IX+d)[0]FD CB d 2E SRA (IY+d) (IY+d) = {(IY+d)[7],(IY+d)[7,1]}
CF = (IY+d)[0]
Rabbit 2000/3000/4000 Rabbit 5000
Description
Arithmetically shifts to the right the bits in the data whose address is:
- the sum of IX and the 8-bit signed displacement d, or
- the sum of IY and the 8-bit signed displacement d.
Bits 7 through 1 are shifted to the next lowest-order bit position (bit 7 is shifted to bit 6, etc.). Bit 7 is also copied to itself. Bit 0 is shifted to the C flag. See Figure 22 for an illustration.
| Rabbit Instructions | << Previous | Next >> | rabbit.com |