nodejs-4004-assembler

所属分类:嵌入式/单片机/硬件编程
开发工具:JavaScript
文件大小:48KB
下载次数:0
上传日期:2020-12-30 00:55:14
上 传 者sh-1993
说明:  英特尔4004汇编程序,用于学习。
(Intel 4004 assembler, for learning.)

文件列表:
assets (0, 2020-12-30)
assets\img (0, 2020-12-30)
assets\img\0.png (9594, 2020-12-30)
assets\img\1.png (17315, 2020-12-30)
assets\img\2.png (20400, 2020-12-30)
assets\img\3.png (7128, 2020-12-30)
main.js (3702, 2020-12-30)
test.asm (240, 2020-12-30)

*Assembler* for [Intel 4004 microprocessor](https://en.wikipedia.org/wiki/Intel_4004), written in *javascript*. Despite being the first *4-bit microprocessor* from *Intel*, the **4004** has a surprisingly complex *opcodes*. However, the [opcode table](http://www.intel.com/Assets/PDF/DataSheet/4004_datasheet.pdf) is simple enough. Also, it is important to mention that this assembler **only** accepts *numbers* for *registers* and *conditions*, instead of *names* or *symbols*. It is a **very crude** *assembler*.

![](assets/img/0.png)
The source file `test.asm` with **4004** instructions.

![](assets/img/1.png)
Run assembler as `node main `.
Here it is `node main test.bin test.asm`.

![](assets/img/2.png)
`test.asm` is converted into `test.bin`.

![](assets/img/3.png)
`test.bin` contains *machine code* for **4004**.


近期下载者

相关文件


收藏者