11

Reading Assignment and Discussion Topics
Computer Science 111

for class on Tuesday March 10, 1998

Please read Chapter 5, up to the beginning of section 5.2.4.2, of the Schneider and Gersting text (pp. 149-177). Section 5.2.2 is good for you, but optional. Be prepared to discuss the following:

Section 5.2.4.1 introduces machine language instructions. Instructions like these are the way that algorithms are ultimately executed by any computer. But programmers (and pseudo-programmers like us) use higher-level expressions of algorithmic intent, things like assignment statements, while loops, and so on. These high-level programs are converted by compilers into machine-language programs before being executed by a computer.

Please convert the following pseudo-code constructs we've been using in class into your choice of machine language instructions from section 5.2.4.1:

In the above statements, the variables i and n are locations in memory. Also, you should assume that useful constant numbers like 1 and 12 and 1024 are themselves the contents of certain memory locations.