Professional Documents
Culture Documents
Computer Organization and Design: Instructions: Language of The Computer
Computer Organization and Design: Instructions: Language of The Computer
Chapter 2
Instructions: Language
of the Computer
Contents
Computer system
Inside a processor
Programming a processor
4: Increment r0 (i)
8: Increment r0 (i)
Introduction to instructions
• Simpler commands/operations eventually lead to
instructions
• Instructions represent something the processor HW can
actually do.
• Instructions inherently suggest a sequence of 1s and 0s
that the processor can understand
• Example: Common DSP function is a multiply-accumulate
operation: x = x + (y*z)
• Some DSP processors have HW that can do this directly
• Others may require two separate steps:
• temp = y * z
• x = x + temp, thus, there would not be a multiply-accumulate instruction
MIPS instructions
Types of instructions
Registers in MIPS
Register order
Complex functions
Read/write
data
Memory organization
1 word
1 8word
bits
8 bits
8 bits
8 bits
Access alignment
Question