Initialization
The i4004em emulator sets up memory as follows:
-
Allocates 4096 bytes of program ROM.
-
Loads program file in p-format.
-
Initializes stack pointer to nesting level 0
(empty).
-
Initializes registers.
-
Initializes RAM.
-
Initializes RAM ports.
-
Initializes RAM status registers.
-
Initializes ROM input and output ports.
-
Initializes command line register.
-
Initializes program counter to location 0.
-
Processes first instruction at location 0.
Sample program
org 0h ; start location
jmp main ; jump to main routine
org 100h ; main routine
main: ; main routine
ldm 3 ; load immediate 3 in accumulator
jmp 0fffh ; stop program
; This convention is unique to emulator
end
Home
|
Copying the Emulator
|
Introduction
|
Features
|
Emulator Initialization
|
User Interface
|
4004 Instruction Set
|
4004 Reference Card
|
References