Home - CodeAbbey/intel4004-emu GitHub Wiki
We have Intel 4004 CPU emulator for you here. If you want to get acquainted with this (probably world's first) computer central processor - walk through this tutorial.
Note that there while you can download standalone version of emulator and run it with Python 2 - you also can try an online version - it is also used in this wiki to run provided examples. There is also great site dedicated to this CPU with assembler and emulator in javascript.
###How to start
Start with learning what is included into Intel 4004 - its Accumulator, Carry flag and 16 registers:
After this you are ready to experiment how basic instructions change values of registers - and how you could see this in emulator:
- Let's try our first instructions - just a couple of them!
Further several topics guide you through essential instructions:
- Assignment instructions - 7 in total
- Arithmetic instructions - 10 in total
- Jump instructions - 4 in total
- Memory-related instructions - 5 in total
- Special instructions - 3 in total
After learning these instructions (about three times more than Brainf**k language offers) - you will know almost everything necessary to play. However there are few more pages important to our emulator:
- Extensions and Limitations - learn how to read and write console, dump registers and memory
- Running Console Emulator - few things about providing input data and parameters
- Working with Online Emulator - the same about online version
This manual is in the process of creation so it is being extended by and by. Come back for more!