Preface Preface to the First Edition 1 Eelcom Aborad 1.1 What We Will Try to Do 1.2 How We Will get There 1.3 Two Recurring Themes 1.4 A Computer System 1.5 Two Very Important Ideas 1.6 Computers as Universal Computational Devices 1.7 How Do We Get the Electrons to Do the Work? Exercises 2 Bits, Data Types, and Operations 2.1 Bits and Data Types 2.2 Integer Data Types 2.3 2s Complement Integers 2.4 Binary-Decimal Conversion 2.5 Operations on Bit-PartⅠ: Arithmetic 2.6 Operations on Bit-PartⅡ: Logical Operations 2.7 Other Representations Exerises 3 Digital Logic Structures 3.1 The Transistor 3.2 Logic Gates 3.3 Combinational Logic Circuits 3.4 Basic Storage Elements …… 4 The von Neumann Model 5 The LC-3 6 Programming 7 Assembly Laguage 8 I/O 9 TRAP Routines and Subroutines 10 And, Finally...The Stack 11 Introducion to Programming in C 12 Variables and Operators 13 Control Structures 14 Functions 15 Testing and Debugging 16 Pointers and Arrays 17 Recursion 18 I/O in C 19 Data Structures A The LC-3 ISA B From LC-3 to x86 C The Microarchitecture of the LC-3 D The C Programming Language E Useful Tables F Solutions to Selected Exercises