EasyManua.ls Logo

Mips Technologies R4000 - Page 479

Mips Technologies R4000
754 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MIPS R4000 Microprocessor User's Manual A-11
CPU Instruction Set Details
Format:
ADD rd, rs, rt
Description:
The contents of general register rs and the contents of general register rt
are added to form the result. The result is placed into general register rd.
In 64-bit mode, the operands must be valid sign-extended, 32-bit values.
An overflow exception occurs if the carries out of bits 30 and 31 differ (2’s
complement overflow). The destination register rd is not modified when
an integer overflow exception occurs.
Operation:
Exceptions:
Integer overflow exception
ADD
Add
31 2526 2021 1516
SPECIAL
rs rt
655
rd
0 ADD
55 6
11 10 6 5 0
0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
ADD
32 T: GPR[rd] GPR[rs] + GPR[rt]
64 T: temp GPR[rs] + GPR[rt]
GPR[rd] (temp
31
)
32
|| temp
31...0

Table of Contents