BF-Chip8-Compiler
所属分类:编程语言基础
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2020-01-29 03:13:19
上 传 者:
sh-1993
说明: 将深奥的编程语言Brainfuck转换为Chip8汇编代码
(Converts the esoteric programming language Brainfuck into Chip8 Assembly Code)
文件列表:
LICENSE (1073, 2020-01-28)
compiler.py (3529, 2020-01-28)
functions.py (7423, 2020-01-28)
glyphs.py (3952, 2020-01-28)
samples/ (0, 2020-01-28)
samples/alphabet.b (54, 2020-01-28)
samples/alphabet.ch8 (472, 2020-01-28)
samples/alphabet.png (242266, 2020-01-28)
samples/hello_world.bf (142, 2020-01-28)
samples/hello_world.ch8 (652, 2020-01-28)
samples/hello_world.png (232149, 2020-01-28)
scaffold.py (3226, 2020-01-28)
# BF -> Chip8 Compiler
This project compiles BrainFuck Code into Chip8 assembly, which can be run on any Chip8 interpreter.
### Web Version
You can play around with an [online Javascript version on my website.](https://jackson-s.me/converter.html)
### Limitations
- Compiled programs *must* fit within 3840 bytes.
- An empty file is 424 bytes, each operator character (i.e. one of .<>+-) requires 2 bytes and very loop instruction ([]) requires 3 bytes.
- There are 256 tape positions, the tape will loop back to 0 on an overflow.
- On most emulators due to stack constraints you can only have 15 nested loops.
- Chip8 runs at 500 hertz, so any programs running on a standard interpreter will be very slow.
- Programs cannot take any input.
### Screenshots
![Hello World Sample](/samples/hello_world.png)
![Alphabet Sample](/samples/alphabet.png)
近期下载者:
相关文件:
收藏者: