Understanding Computer Programming

Osher Lifelong Learning Institute
University of Illinois, Urbana-Champaign

Scott Badman, Instructor


Topic: Machine Code and Assembly Language

March 17, 2016


Computer

A program is just the series of numbers representing the commands that activate the computer's circuit.

These commands mostly just move numeric data from one memory location to another or do simple arithmetic or logic.
These commands are called "operation codes" or "opcodes".
A program resides in memory, and is accessed automatically and sequentially by the "fetch" circuitry.
Opcodes also contain data memory addresses to locate the numeric data it uses.
A program must be able to jump to another part of the program by comparing two numbers and then
  loading a new opcode address, different from just the next opcode address, for the next opcode.
  This is also done by the "fetch" circuitry.



Arithmetic Logic Unit


Fetch Circuitry


Incrementer Circuitry


Execute Circuitry


Understanding Computer Programming

Osher Lifelong Learning Institute
University of Illinois, Urbana-Champaign

Scott Badman, Instructor