previous
 next 
CS 3843 Computer Organization
Notes on Chapter 3: Introduction

Start Reading Chapter 3

Some of this material is from Section 3.2.1

An Introduction to Assembly Language


Question:
What does the following program do?
mrmov 12(r1), r2
mrmov 8(r1), r3
add r2, r3
rmmov r3, 8(r1)
Answer:
Implements x = x + y


Base register plus displacement addressing:
Why is base register plus displacement addressing important?
How C functions are implemented (simplified)
Consider the following function:
int sum(int x, int y) {
   return x + y;
}
How this works:
Question:
What is located at 0(r1)?
Answer:



 Back to CS 3843 Notes Table of Contents
 next