COMP 208 Study Guide - Winter 2018, Comprehensive Midterm Notes - Java Virtual Machine, Boolean Data Type, Integer
COMP 208
MIDTERM EXAM
STUDY GUIDE
Fall 2018
COMP 273
Lecture 1:
UNIT 1 — BASICS: Introduction to Computer Systems.
Lecture Outline:
• Intro to course.
• About CPUs & Assembler Programming
• Tools used in this course
How does this course fit in?
• Computer Systems is a mixture of assembler programming & making circuits.
• Computers are a system; the computer is divided into multiple layers: logic
gates, controllers, machine instructions, the operating system, assembly
language, high-level language, and the user.
• This course is about understanding the computer and how it works, what a
programming instruction is, what the capabilities of a programmer are.
About CPUs and Assembler Programming:
• CPU vs Controller
⁃ CPU = Central Processing Unit, it’s a computation engine.
⁃ Controller = it’s a simple or partial CPU, used to manage a machine
(but not a computer).
⁃ Cellphones have CPUs, dishwashers have controllers.
find more resources at oneclass.com
find more resources at oneclass.com
—> Example: If we have ADD 1, 6 in assembly language, when it compiles it
becomes 01001110 in machine language where ADD = 01, One = 001 and Six
= 110.
Logic Gates:
AND
1 and 1 = 1
1 and 0 = 0
0 and 1 = 0
find more resources at oneclass.com
find more resources at oneclass.com
Document Summary
Unit 1 basics: introduction to computer systems. Lecture outline: intro to course, about cpus & assembler programming, tools used in this course. About cpus and assembler programming: cpu vs controller. Cpu = central processing unit, it"s a computation engine. Controller = it"s a simple or partial cpu, used to manage a machine (but not a computer). > example: if we have (cid:1688)add 1, 6(cid:1689) in assembly language, when it compiles it becomes (cid:1688)01001110(cid:1689) in machine language where add = 01, one = 001 and six. The assembler language: assembly language was created because writing in binary is a lot of work, everything has to go into machine language. No such thing as java, python, c, etc. Try at home: open computer and identify ram, cpu, slots, cards, bus, notice when you compile a c or c++ program the source file is not the same size as the executable (machine language). Tools for the source: logisim (for creating and executing circuits)