Prerequisites
The Intel 4004 Toolkit is built with Zig. You’ll need to install Zig before building the project.Install Zig
Download and install Zig from ziglang.org. The toolkit works with current Zig versions.Verify your installation:
Build the toolkit
Run the Zig build command:This compiles both the assembler and emulator. The executables will be placed in
zig-out/bin/:4004-assembler- The assembler4004-emulator- The emulator
What gets built
The Zig build system creates two executable programs:4004-assembler
Converts
.4004 assembly files into executable binaries that can run on the emulator.4004-emulator
Runs compiled 4004 programs with virtual I/O devices for interactive programs.