Intel i960 Jx Developer's Manual page 213

Microprocessor
Table of Contents

Advertisement

shli:
if(len > 32)
count = 32;
else
count = src1;
temp = src;
while((temp[31] == temp[30]) && (count > 0))
{
temp = (temp * 2)[31:0];
count = count - 1;
}
dst = temp;
if(count > 0)
{
if(AC.om == 1)
else
}
shri:
if(len > 32)
count = 32;
else
count = src1;
temp = src;
while(count > 0)
{
temp = (temp >> 1)[31:0];
temp[31] = src[31];
count = count - 1;
}
dst = temp;
shrdi:
dst = src / (2**len);
Faults:
STANDARD
ARITHMETIC.OVERFLOW
Example:
shli 13, g4, r6
Opcode:
shlo
shro
shli
shri
shrdi
AC.of = 1;
generate_fault(ARITHMETIC.OVERFLOW);
Refer to
For
# g6
59CH
REG
598H
REG
59EH
REG
59BH
REG
59AH
REG
INSTRUCTION SET REFERENCE
section 6.1.6, "Faults" (pg.
shli.
g4 shifted left 13 bits.
6
6-5).
6-101

Advertisement

Table of Contents
loading

Table of Contents