Skip to Content
Essentials of Computer Organization and Architecture, 5th Edition
book

Essentials of Computer Organization and Architecture, 5th Edition

by Linda Null, Julia Lobur
March 2018
Beginner content levelBeginner
744 pages
26h 5m
English
Jones & Bartlett Learning
Content preview from Essentials of Computer Organization and Architecture, 5th Edition

4.10 A SIMPLE PROGRAM

We now present a simple program written for MARIE. In Section 4.12, we present several additional examples to illustrate the power of this minimal architecture. It can even be used to run programs with procedures, various looping constructs, and different selection options.

Our first program adds two numbers together (both of which are found in main memory), storing the sum in memory. (We forgo I/O for now.)

Table 4.3 lists an assembly language program to do this, along with its corresponding machine language program. The list of instructions under the Instruction column constitutes the actual assembly language program. We know that the fetch–decode–execute cycle starts by fetching the first instruction of the program, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Essentials of Computer Organization and Architecture, 4th Edition

The Essentials of Computer Organization and Architecture, 4th Edition

Linda Null, Julia Lobur
Computer Architecture, 5th Edition

Computer Architecture, 5th Edition

John L. Hennessy, David A. Patterson
Operating System Concepts, 8th Edition

Operating System Concepts, 8th Edition

ABRAHAM SILBERSCHATZ, PETER BAER GALVIN, GREG GAGNE

Publisher Resources

ISBN: 9781284123043