VirtCPU app icon

VirtCPU

Step through a 16-bit CPU

macOS·by shazi software·$1.00
View on the App Store
NewApp Store rating
0Store ratings
0Upvotes
2026-11-19Released

Screenshots

VirtCPU screenshot 1

VirtCPU is a 16-bit processor students can watch. The lights on the front panel are the processor: the accumulator, the index, the counter, the stack pointer, the program counter, and the instruction register. Two buses stay separate. Memory uses the address and data registers. Devices use the I/O register. Students see which lights change, then write the assembly that makes the next change. Load a program from the memory menu. Multiply 5 times 5 is a good first lesson. Press Step. The panel walks one beat of the hardware cycle. The program counter's address goes out on the memory address register, the word comes back in the memory data register, and then the instruction runs. A sentence under the lights says what that beat did. Run slow finishes one instruction each second, so a class can follow it. Run goes full speed. Reset starts that program over. That is the processor-design lesson. A processor is these registers and these two paths. Amber lights are addresses. Red lights are data. The same value sits in binary, hex, and decimal, so a student can tie the bits to the number. The memory column shows every word as bits, hex, decimal, and the instruction those bits mean. The row being read is highlighted. Switches and output lights sit on the I/O bus, so reading memory and reading a switch are different trips. A key typed into telnet can interrupt the program, run a handler at a fixed address, and return. That is how a processor notices the world outside itself. Press Prg to write assembly. A second window opens with the instruction list beside the editor. The shipping programs are lessons, and the lines that need an explanation have a comment. Students can read them and copy them. Shipping programs stay as they shipped. A student types a new name, changes the program, and saves. That program appears in the memory menu, and the same lights now explain the student's own code. The lessons are concrete. A jump names its own address and never stops. Add and subtract pull full 16-bit words from memory, because an instruction has room for an address, not for a number as large as 40000. Multiply is a loop: the accumulator holds the product, and the counter counts down so those two jobs do not share one register. A later program passes an address in the index register and calls a subroutine. Echo waits for a key, sends it back, and returns to the wait. Tab finishes an instruction name. A semicolon starts a comment, and comments are not loaded into memory. VirtCPU needs macOS 15 or later. It collects nothing. The serial line listens only on this Mac: telnet 127.0.0.1 2323.

Categories

Education

Discussion

Loading comments…

Are you the maker?

Add this badge to your site or README — it links back here, where people can upvote and comment.

Featured on AppDropping
<a href="https://appdropping.com/drops/virtcpu" target="_blank" rel="noopener">
  <img src="https://appdropping.com/featured-badge.svg" alt="Featured on AppDropping" width="240" height="54" />
</a>

More Education drops

ShoSpeak screenshot 1ShoSpeak screenshot 2
ShoSpeak app icon

ShoSpeakFree

A voice for everyone

iOS5.0(4)
NCLEX RN & PN Prep screenshot 1NCLEX RN & PN Prep screenshot 2
NCLEX RN & PN Prep app icon

NCLEX RN & PN PrepFree

Chronic, Unstable vs

iOS5.0(3)
By Heart screenshot 1By Heart screenshot 2
By Heart app icon

By HeartFree

Open a verse, say it from memory, and By Heart listens

iOS4.7(3)
StudyBro AI screenshot 1StudyBro AI screenshot 2
StudyBro AI app icon

StudyBro AIFree

AI Homework Solver & Tutor

iOS5.0(3)