How Does A Computer Run A Program?
Let's See How It Works!
Our First Little Man Program!
How The CPU Works
Mailbox Code Instruction Description
00 901 INPUT
01 399 STORE DATA (to mailbox no 99)
02 901 INPUT
03 199 ADD the 1st number to 2nd number
04 902 OUTPUT RESULT
05 000 The Little Man rest
- The instructions, or code, are on the left of the screen
- The CPU is the orange box that sends and receives the information
- The RAM card has numbered "mailboxes" that the CPU sends information to and receives informaton from.
- The CPU is like a little man in your computer that controls where all of the information goes.
- He's a mailman, sending and receving information back and forth!
Random Access Memory (RAM)
Central Processing Unit (CPU)
- The Random Access Memory Card receives information from the CPU
- Random Access Memory saves the instructions
- Why is it random? The CPU can save and retrieve information from any part of the RAM memory.
- The Central Processing Unit (CPU) gives instructions telling the computer what to do.
- Where does the CPU send these instructions?