Remi, Remo - Intel i960 Jx Developer's Manual

Microprocessor
Table of Contents

Advertisement

6.2.53

remi, remo

Mnemonic:
remi
remo
Format:
rem*
Description:
Divides src2 by src1 and stores the remainder in dst. The sign of the result
(when nonzero) is the same as the sign of src2.
Action:
remi, remo:
if(src1 == 0)
generate_fault(ARITHMETIC.ZERO_DIVIDE);
dst = src2 - (src2/src1)*src1;
Faults:
STANDARD
ARITHMETIC.ZERO_DIVIDE
Example:
remo r4, r5, r6
Opcode:
remi
remo
See Also:
modi
produces the correct result (0) even when computing -2
Notes:
remi
would cause the corresponding division to overflow, although no fault is gen-
erated.
INSTRUCTION SET REFERENCE
Remainder Integer
Remainder Ordinal
src1,
src2,
reg/lit
reg/lit
Refer to
# r6
r5 rem r4
748H
REG
708H
REG
dst
reg
section 6.1.6, "Faults" (pg.
The src1 operand is 0.
31
-1, which
remi
6
6-5).
6-91

Advertisement

Table of Contents
loading

Table of Contents