Presentation is loading. Please wait.

Presentation is loading. Please wait.

Logical instructions And rd rs rt Nor rd rs rt Or rd rs rt

Similar presentations


Presentation on theme: "Logical instructions And rd rs rt Nor rd rs rt Or rd rs rt"— Presentation transcript:

1 Logical instructions And rd rs rt Nor rd rs rt Or rd rs rt
Xor rd rs rt Andi rt rs Imm Ori rt rs Imm Xori rt rs Imm Careful: Immediate variants Zero-extend

2 How to invert each bit? (One's complement) Nor rd rs $0 This is not!
Nor fuction A B C 0 0 1 0 1 0 1 0 0 1 1 0 A 1 C=A' B=0

3 Shift instructions Logical shift left Logical shift right A B C D
lost lost B C D 0 0 A B C

4 Shift instructions Arithmetic shift right A B C D lost A A B C

5 Shift instructions Sll rd rt expr Sra rd rt expr Srl rd rt expr
rd := rt shifted by expr (0..31) Sllv rd rt rs Srav rd rt rs Srlv rd rt rs rd := rt shifted by rs (variable)

6 Rotate instructions Rotate left Rotate right A B C D A B C D B C D A


Download ppt "Logical instructions And rd rs rt Nor rd rs rt Or rd rs rt"

Similar presentations


Ads by Google