19 lines
1.7 KiB
Markdown
19 lines
1.7 KiB
Markdown
# chip8
|
|
[](https://git.sr.ht/~redstrate/chip8)
|
|
[](https://github.com/redstrate/chip8)
|
|
[](https://git.ryne.moe/redstrate/chip8)
|
|
|
|
A chip8 emulator that I implemented in C++. It only implements the SCHIP instruction set, and can play many modern roms found online. There's a basic memory viewer and debugger available as well.
|
|
|
|

|
|
|
|
This emulator also comes with a basic compiler that takes a C-style language as input and can spit out valid CHIP-8 code:
|
|
```
|
|
var count = 3;
|
|
label(main);
|
|
count += 3;
|
|
draw_char(0, 5, count)
|
|
jump(main);
|
|
```
|