Tips for testing the i4004
How to use the i4004em emulator:
-
All input and output are controlled through
the keyboard and UNIX tty terminal.
-
Do not redirect standard input or standard
output.
-
The ROM input port is asynchronous. Use the
I command to select it and fill it
with data.
-
Each instruction runs in single step mode.
-
Create a program loop to simulate a break point.
-
The Intel 4004 starts at location 0.
-
The underlying machine has 4K of ROM
program memory.
-
The emulator allows your program to jump to location
hex FFF to terminate.
-
You may use the escape key to terminate your test
program prior to any instruction.
-
The ncurses user interface terminates
when the input key includes an escape sequence.
-
You may use the R key to restart your
test program.
-
You may use the D key to dump ROM program
memory to a file, called tst.mem.
-
Use the od Unix command to read the
memory dump.
-
The ASL package compiles an Intel 4004
assembler program into a p-format binary file.
-
The emulator reads the output of ASL
in p-format.
-
The test program can have any number of program
sections with separate org statements.
-
The emulator treats stack overflow and underflow
as errors.
-
The emulator only allows a single flag for each
conditional jump.
-
Program logic in the emulator is designed around
the Intel 4004 architecture, not around the most
efficient way to implement instructions.
Home
|
Copying the Emulator
|
Introduction
|
Features
|
Emulator Initialization
|
User Interface
|
4004 Instruction Set
|
4004 Reference Card
|
References