Understanding Computer Hardware
Preliminaries: Digital data and Boolean operations
• [Link]
lUrzyH5r6jN9ulIgZBpdo&index=4
• [Link]
tNlUrzyH5r6jN9ulIgZBpdo&index=5
• [Link]
tNlUrzyH5r6jN9ulIgZBpdo&index=6
[Link]
Computer Hardware Architecture
Machine Language
Assembly Language
Assembly;
COMPILING
Whats inside a microprocessor?
How does CPU works
• [Link]
• [Link]
NlUrzyH5r6jN9ulIgZBpdo&index=8
Instruction cycle animation:
FETCH-DECODE_EXECUTE
• [Link]
teps/49284
Little Man computer: A von neuman machine
[Link]
[Link]
Little Man computer: A von neuman machine
[Link]
[Link]
Little Man Computer Instruction Set
Mnemonic Code Numeric Code Instruction
INP 901 Input data
ADD 1XX Add data
SUB 2XX Subtract data
STA 3XX Store data
LDA 5XX Load data
BRA 6XX Branch to specified cell
BRZ 7XX If 0, branch to a specified cell
BRP 8XX If 0 or positive, branch to a specified cell
OUT 902 Output data
HLT HLT Break execution
DAT Treat content as data
XX is the cell number in the memory compartment.
Example Code
NP
INP INP STA A
INP
STA 20 STA A STA B
OUT OUT LDA A
HLT HLT ADD B
OUT
A DAT HLT
A DAT
B DAT
Python is an Interpreted
language
Memories
• [Link]
• [Link]