INTEL 4004 SYSTEM EMULATOR (initial version)

4002 RAM:

MAIN MEMORY
0123456789ABCDEF
REGISTER 00000000000000000
REGISTER 10000000000000000
REGISTER 20000000000000000
REGISTER 30000000000000000
STATUS
0123
0000
0000
0000
0000

OUTPUTS:

Q0Q1Q2Q3

4002 RAM:

MAIN MEMORY
0123456789ABCDEF
REGISTER 00000000000000000
REGISTER 10000000000000000
REGISTER 20000000000000000
REGISTER 30000000000000000
STATUS
0123
0000
0000
0000
0000

OUTPUTS:

Q0Q1Q2Q3

4001 ROM:

I/O PORT:
Q0Q1Q2Q3

What is the e4004 emulator?

The e4004 emulator is a very complex emulator of the INTEL 4004 system. All register and flags of CPU block are emulated. Also all registers of sytem RAM and ROM are emulated. The full code of this software is completely written in JavaScript, so it should be able to execute on whatever platform with the internet browser and implemented CSS2 and JavaScript interpreter.

Features Of The as4004 Assembler
Running the e4004 emulator
Quick Start

This part of the description is for those of you who want to see the e4004 emulator in demo action. It can be easy to realize. Just press one of described bellow buttons and next press the 'ANIMATE' button.



'P1' button - RAM memory test program



; ram_test.asm ; test the Intel 4002 init FIM R0R1, 0 ; initialize R0=R1=0 FIM R2R3, 0 ; initialize R2=R3=0 LDM 12 ; load 12 to accumulator XCH R2 ; initialize R2=12 loop1 SRC R0R1 ; select register & address WRM ; write accumulator to memory IAC ; increment accumulator ISZ R1, loop1 ; loop 16 times INC R0 ; increment R0 ISZ R2, loop1 ; loop 4 times FIM R0R1, 0 ; initialize R0=R1=0 FIM R2R3, 0 ; initialize R2=R3=0 LDM 12 ; load 12 to accumulator XCH R2 ; initialize R2=12 loop2 SRC R0R1 ; select register & address WR0 ; write status character 0 IAC ; increment accumulator WR1 ; write status character 1 IAC ; increment accumulator WR2 ; write status character 2 IAC ; increment accumulator WR3 ; write status character 3 IAC ; increment accumulator INC R0 ; increment R0 ISZ R2, loop2 ; loop 4 times DONE JUN DONE ; endless loop as end of program


'P2' button - MCS-4 EVALUATION KIT USING THE 4001-0009


This kit provides both a convenient way of evaluating the MCS-4 parts and ab educational vehicle to better understand the MCS-4 operation. The 4001-0009 a microprogram that exercises the 4004 and 4002's and executes all of the 45 instructions in MCS-4 instruction set.




'P3' button - not implement yet