p1: Counter Ready
PC: 0 · SP: 255 · Cycles: 0 · Z=0 N=0 O=0
Data stack: Empty · Call frames: Empty
Private memory: 0 / 256 nonzero bytes
All bytes are zero.
No output yet.
From one instruction to several tasks
Give programs turns on a CPU. Watch each private machine pause, sleep, wait, and resume.
This is an educational model, not a full operating system or hardware emulator. Each process has its own eight registers and 256-byte memory. Cores execute one instruction per simulated tick; round-robin scheduling gives a ready process a bounded turn.
Programs and input stay in this browser. No accounts, network services, or student records are needed.
Idle
Instructions in this turn: 0Ready queue: p1 · Interrupt queue: Empty
Counter, Fibonacci, and calculator run locally in the same tested emoji CPU. Edit them or add your own program. This lab has no filesystem or network emulator.
INPUT with an empty queue waits at the same PC without consuming a CPU cycle. Deliver an integer and then use Step or Run. SLEEP releases a normal process until its simulated wake time.
A process control block (PCB) records the machine state needed to continue a program. Open a memory summary to inspect nonzero bytes. Memory belongs to that process; the stack and call frames are separate from the memory grid.
PC: 0 · SP: 255 · Cycles: 0 · Z=0 N=0 O=0
Data stack: Empty · Call frames: Empty
All bytes are zero.
No output yet.
The latest 80 events show actual process and core assignments, executed source instructions, output, and context changes. The complete timeline remains in this local simulation until Reset.
p1Counter joined the ready queue.