The link:
http://www.herts.ac.uk/lis/ltdu_temp/ltdu/project
s/mm5/#
You can access this link directly from my website
Note:
Note:
Note:
Note:
10
A Simple Program
A few items
11
A Simple Program
Assumed Solutions
12
A Simple Program
Assumed Solutions
13
A Simple Program
Look at a program where the USER uses
the Little Man Computer to add two
numbers.
The User will place two numbers in the in
basket
The sum of the two will appear as a result
in the out basket
14
A Simple Program
INPUT 500
15
A Simple Program
STORE 99
299
16
A Simple Program
INPUT
ADD
500
399
A Simple Program
OUTPUT 600
COFFEE BREAK
700
Note:
A Simple Program
Code Summary
Step
00
01
02
03
04
05
99
Mailbox
code
Instruction
description
500
299
500
399
600
700
INPUT
STORE DATA
INPUT 2ND #
ADD 1ST # TO it
OUTPUT RESULT
STOP
DATA
19
22
Overview
We saw in the Little Man Computer a
simplified version of how a CPU works.
23
CPU Components
3 Major Parts
24
ALU
Control Unit
Program Counter
Memory
I/O
25
Direct Comparison of
LMC & CPU
Control
Unit
ALU
I/O
Interface
Memory
Program
Counter
26
CPU
ALU
Control Unit
Program Counter
I/O
Memory
Arithmetic/
Logic Unit (ALU)
CPU
ALU
Control Unit
Program Counter
Memory
Control Unit
I/O
28
CPU
ALU
Control Unit
Program Counter
Memory
Registers
I/O
The End
30