Week 4
Home ] Up ] Week 1 ] Week 2 ] Week 3 ] [ Week 4 ] Week 5 ] Week 6 ] Week 7 ] Week 8 ] Week 9 ] Week 10 ] Week 11 ] Week 12 ]

 

 

Reading: Chapter 2 (2.1-2.4), APPENDIX C
Powerpoint slides for Chapter 2

Lecture

This chapter introduces the activities of a computer's CPU. It describes the machine cycle executed by the control unit and the various operations (or, and, exclusive or, add, shift, etc.) performed by a typical arithmetic/logic unit. The concept of a machine language is presented in terms of the simple yet representative machine described in Appendix C of the text.
 

The optional sections in this chapter present a more thorough discussion of the instructions found in a typical machine language (logical and numerical operations, shifts, jumps, and I/O
communication), a short explanation of how a computer communicates with peripheral devices, and alternative machine designs.
 

The machine language in Appendix C involves only direct and immediate addressing.
However, indirect addressing is introduced in the last section (Pointers in Machine Language) of Chapter 8 after the pointer concept has been presented in the context of data structures.

Practice (Applets developed by OSU Department of Computer Science)
Try to run one of the applets below. If the applet fails to run, you may need to download and install the Java runtime environment. Here is a link to the Sun Microsystems Web site that contains the J2SE Runtime Environment (JRE) that allows you to run Java applications. When you go to this page, click on "Download J2SE JRE" and follow the directions to download just the runtime environment. Alternatively, you may click on "Download J2SE SDK" and follow the directions to download the entire J2SE Software Development Kit. (You don't need both.)