Skip to content

PinkFlowerDelivery/intel4004-asm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

intel4004-asm

The assembler for my intel 4004 emulator. Emulator repo

How to build

git clone https://github.com/PinkFlowerDelivery/intel4004-asm
cd intel4004-asm 
mkdir build 
cmake -S . -B ./build
cmake --build build

./build/i4004asm path/to/program.asm 

Custom instructions

store (0xE) - [register; 8-bit address] Stores the value from the specified register into ROM at the given 8-bit address. Used by the FIM and FIN instructions.

Usage example

main: ldm 10 ; Load 10 to AC
xch r1       ; Move value from AC to r1 register
ldm 5        ; Load 5 to AC
add r1       ; Add AC and r1 register
jun main     ; Jump to label main

About

Intel 4004 asm for my emulator

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages