chapter 11,12 Flashcards
Fetch/Execute cycle 5 steps
inst fet (If), inst decode (id), data fetch (df), inst execute (ex), result return (rr)
Computers 5 basic parts
memory, contrul unit, arithmetic/longic unit, input unit, output unit
input
mouse, keyboard, scanner
output
monitor, printer, speakers
input and output
hard disk and usb memory
Memory
sequence of discrete locations; composed of 1 byte (8 bits); address=whole number starting with 0; memory locations store/record values
byte size memory location
store one ASCII character or number less than 256, blocks of 4 bytes called WORDS
RAM
Random Access Memory, measured in MG or GB
Control Unit
where fetch/execute cycle occurs
ADD 4000, 2000, 2080
numbers stored in locations 200 and 2080 added together, stored in location 4000
ALU
arithmetic/logic Unit, Does the Math, uses logic gates to implement operations like AND, OR, each instruction carried out with separate circuit
Peripherals
connect to the computer input/output (i/o) ports; not considered part of computer, just specialized gadgets to en/decode info
Peripheral Examples
Keyboard, encodes keys to binary, monitor decodes infor from memory; handle PHYSICAl part
Alpha-Peripheral
hard disk, most tightly linked to computer, must hold programs and their data to run; bigger but slower than computer’s memory
Device Driver
added processing softward gives peripheral standard meaning, behavior, intelligence
PC
Program counter, address used to keep track of next instruction; Next instruction always at PC plus 4
Branch/jump
Some instructions can jump the net sequential instructions
Instruction Interpretation
process of executing a program