CPU Simulator
Settings
Number Base
Binary
Decimal
Hex
Reset RAM
Reset CPU
Examples
Import / Export
Step
Run
Run speed:
Turbo (No limit)
Fast (2 Hz)
Normal (1 Hz)
Slow (0.5 Hz)
Slug (0.2 Hz)
Press the step button to see each stage of the fetch, decode execute cycle
RAM
CPU
ALU
CU
PC
0
MAR
0
MDR
0
ACC
0
CIR
0
Decode unit
Opcode
Operand
Instruction
0000
0000
End
0001
address
Add
0010
address
Subtract
0011
address
Store
0101
address
Load
0110
address
Branch Always
0111
address
Branch if ACC = 0
1000
address
Branch if ACC ≥ 0
1001
0001
Input
1001
0010
Output
Change value
Change value from:
to
Input
Output
Copy and paste program hex code
Example projects
Add two numbers
Find the biggest out of two numbers
Division
Multiplication
Fibonacci Sequence
View project source code