Presentation is loading. Please wait.

Presentation is loading. Please wait.

MIPS e pipelining Tecniche di base.

Similar presentations


Presentation on theme: "MIPS e pipelining Tecniche di base."— Presentation transcript:

1 MIPS e pipelining Tecniche di base

2

3

4

5

6

7

8

9

10

11

12 SOLUZIONE SOFTWARE:

13

14

15

16 Immediate offset value
SET ISTRUZIONI MIPS Mnemonic Type Operand 1 Operand 2 Operand 3 Description ADD R Dest Source1 Source2 Add value addressed by the two source operands to the dest operand. Add $3 $2 $1 - Source address is sum of register 2 and 1 and placed in register 3. ADDI I Source Immediate Add value addressed by the two source operands to the dest operand. Add $1 $ Add 20 to the contents of register 2 and place in register 1. BEQ First Source reg. Second Source reg. Immediate offset value Compare the first two registers and move the immediate to the Program Counter, if equal. BEQ $5 $ Compare registers 5 and 2 and branch to location 10 if they are equal. BNE Compare the first two registers and move the immediate to the Program Counter, if not equal. BNE $5 $ Compare registers 5 and 2 and branch to location 10 if they are not equal. LW M Dest. reg. Offset (Base reg.) Load the destination register with the memory value computed by the sum of the offset and the base register. LW $1 15($2) - Add 15 to register 2 to compute the memory location to load into register 1. MULT Multiply the two source register contents and place the results in the destination register. Add $6 $2 $7 - Multiply contents of registers 2 and 7 and store results in register 6. NOP No operation. Sometimes placed in code to hold a location. SUBI Destination register receives the immediate subtracted from the source register. SUBI $1 $ Subtract 20 from the contents of register 2 and place in register 1. SW Source reg. Save the value in the first operand into the memory address computed by the sum of the offset and the base register. SW $1 25($2) - Store the contents of register 1 in the memory location whose address is the sum of 25 and register 2.


Download ppt "MIPS e pipelining Tecniche di base."

Similar presentations


Ads by Google