Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

woojiahao/chirp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chirp

CHIP-8 emulator built with C!

Built this as an opportunity to also experiment with low-level programming.

Getting started

I have only tested this with MacOS ARM64, but it should work with Linux.

Make sure to install SDL3 first (instructions).

Note

I may migrate from Makefile to CMake in the future, but for now, chirp is primarily supported on MacOS!

git clone https://github.com/woojiahao/chirp.git
cd chirp
make clean
make all

out/chirp roms/ibm-logo.ch8

Usage

Download the released binary for MacOS ARM64 and test:

usage: chirp ROM [options]
  [--debug]
  [--shift-vx]
  [--jump-with-vx]
  [--set-registers-increment-index]
  [--load-registers-increment-index]
  [--has-audio]
  [--cpu=N]

Notes

As I was working on chirp, I was compiling my notes on Notion. These notes include CHIP-8 specification, instruction set details, emulation techniques, SDL notes (graphics and audio programming), and rendering techniques.

Notes here