Coa Slide 1 PDF
Coa Slide 1 PDF
Architecture
Instructions: Language of the Computer
Slide no: 01
Md. Neamul Haque
Lecturer, Computer Science and Engineering, Premier University
Reference book
4 100
3 10
Memory
2 21
1 32
0 67
A[12]=h+A[8]
lw $t0 , 32($s3)
# temporary register $t0 gets A[8]
add $t0 , $s2 , $t0
# temporary register $t0 gets h+A[8]
sw $t0 , 48($s3)
# stores h+A[8] back into A[12]
Representing instructions in the
computer
MIPS R-Format Instructions
MIPS I-Format Instructions
chart to remember
valus are provided in the table are in decimal.
reg—0 t0 31
address – 16 bit address
Instruction format op rs rt rd shamt funct address
op rs rt rd address/ funct
shamt
10 011 01 001 01 000 0000 0100 1011 0000
000 000 10 010 01 000 01 000 00 000 100 000
10 011 01 001 01 000 0000 0100 1011 0000
Logical operations
Shift operation
Continue…