


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























Logical Operators
Logical Operators
A B AND OR 0 0 0 1 1 0 1 1
Uses for Logical Operators
1011 0110 1010 0100 0011 1101 1001 1010
0000 0000 0000 0000 0000 1111 1111 1111
Uses for Logical Operators
Shift Instructions (2/3)
1 2,3,
MIPS shift instructions:
Shift Instructions (3/3)
Example: shift right arith (sra) by 8 bits
1001 0010 0011 0100 0101 0110 0111 1000
t 0001 0010 0011 0100 0101 0110 0111 1000 After sll 0101 0110 0111 1000 0000 0000 0000 0000
After srl
instructions.
conventions.
instruction formats to fully appreciate certain restrictions.
op-code rs rt rd shamt funct
op-code rs rt immediate value
op-code 26 bit current segment address
6 5 5 16
6 5 5 5 5 6
6 26
op-code rs rt rd shamt funct 6 5 5 5 5 6