CPU Simulator

Settings

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

OpcodeOperandInstruction
00000000End
0001addressAdd
0010addressSubtract
0011addressStore
0101addressLoad
0110addressBranch Always
0111addressBranch if ACC = 0
1000addressBranch if ACC ≥ 0
10010001Input
10010010Output
View project source code