Notes for Week 2
← back to syllabus ← back to notes
Topics
- Recap: Stored Program Concept, and the history of computer architecture and modern advancements
- The alphabet, vocabulary, grammar of computers
1s and 0s as the alphabet
- compute and memory instructions as the vocabulary
- implementation of compute and memory instructions as the grammar
- Introducing the instructions of a computer delivered by the architecture
- Operations of the computer hardware
- Operands of the computer hardware
- Signed and unsigned numbers
- Representing instructions in the computer
- Logical operations
Topics Deep Dive
Instructions: The Language of the Computer
Operations of the Computer Hardware
Every computer must be able to perform arithmetic. The MIPS instruction set includes:
add a, b, c # The sum of b and c is placed in a.
sub a, b, c # The difference of b and c is placed in a.
Operands of the Computer Hardware
- Register Operands: Arithmetic instructions usage register operands. MIPS has a 32 x 32-bit register file.
- Memory Operands: Data transfer instructions (
lw, sw) move data between memory and registers.
- Constant or Immediate Operands: Arithmetic instructions can use constants for the second source operand (e.g.,
addi).
Signed and Unsigned Numbers
- Representation of numbers in binary (Two’s Complement).
Representing Instructions in the Computer
- R-Type (Register)
- I-Type (Immediate)
- J-Type (Jump)
Logical Operations
sll, srl
and, or, nor, xor
← back to syllabus ← back to notes