Lecture4.ppt
EECS314 Introduction.1 Spring, 2014
EECS 314
Computer Architecture
Spring 2018
Chapter 2
Instructions: Language of
the Computer
Instructor: Ming-Chun Huang, PhD
ming-chun.huang@case.edu
Office: Glennan 514B
EECS314 Introduction.2 Spring, 2014
EECS314 Introduction.3 Spring, 2014
EECS314 Introduction.4 Spring, 2014
EECS314 Introduction.5 Spring, 2014
EECS314 Introduction.6 Spring, 2014
e.g. x = an empty space
y = “architecture”
EECS314 Introduction.7 Spring, 2014
EECS314 Introduction.8 Spring, 2014
1
EECS314 Introduction.9 Spring, 2014
e.g. 5! = 5x4x3x2x1=120
EECS314 Introduction.10 Spring, 2014
Temporary Var n = 5
$ReturnAddr for n=5
Temporary Var n = 4
$ReturnAddr for n=4
Temporary Var n = 3
$ReturnAddr for n=3
Temporary Var n = 2
$ReturnAddr for n=2
Stack in Memory eventually
$v0 = 1, initially
EECS314 Introduction.11 Spring, 2014
e.g. 5! = 5x4x3x2x1=120
EECS314 Introduction.12 Spring, 2014
EECS314 Introduction.13 Spring, 2014
EECS314 Introduction.14 Spring, 2014
Multiplied by 4
EECS314 Introduction.15 Spring, 2014
EECS314 Introduction.16 Spring, 2014
EECS314 Introduction.17 Spring, 2014
EECS314 Introduction.18 Spring, 2014
EECS314 Introduction.19 Spring, 2014
EECS314 Introduction.20 Spring, 2014
EECS314 Introduction.21 Spring, 2014