Skip to content

My own implementation of CHIP-8 emulator & assembler (originally done in an afternoon)

Notifications You must be signed in to change notification settings

willdunklin/questionable-chip-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Questionable (C)HIP-8

Quick Start

cmake -B ./build -G Ninja  # -G Ninja is optional but recommended
cmake --build ./build && ./build/chip8

# to try assembler run the following binary (after building of course)
./build/chip8asm ./test/foo.asm ./test/bar.bin

Build, Assbemble and Run

clear; cmake --build ./build && ./build/chip8asm test/foo.asm test/bar.bin > /dev/null && ./build/chip8 test/bar.bin

Assembly Info

I've added a simple assembler (but don't try to push it very far). It ignores spaces, blank lines and nothing else. The basic syntax is as follows:

mov  v0 2
jmp0 198
add  v0 60

See more in assembly.md.

Resources

About

My own implementation of CHIP-8 emulator & assembler (originally done in an afternoon)

Resources

Stars

Watchers

Forks

Languages