Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 784 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 784 Bytes

chip-8-emulator

A very simple Chip-8 emulator and disassembler

Dependencies

gcc, SDL2 and SDL2_mixer, install them through your distro's package manager If you are on windows it should be fine, haven't tested it tho.

Instructions

Disassembler

g++ main.cpp -o disas
./disas ROMFILE

Disassembler syntax is an Assemlby language with AT&T syntax made by me as there is no offical Chip-8 assembly language

Emulator

g++ main.cpp -lSDL2 -lSDL2_mixer -o emu
./emu ROMFILE clocktime(ms)

Clocktime indicates how many milliseconds pass between 2 cycles. In 1 cycle 8 instructions gets executed, giving us approximately 500 operations per second. If clock time isnìt specified it defaults to 16, with clocktime==420 there is no delay between operations