Skip to content

jali-clarke/haskell-chip8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haskell-chip8

an implementation of a CHIP-8 emulator in haskell using the opcodes described on wikipedia

how to use

build with either cabal (using hpack) or nix.

$ haskell-chip8 --help

Usage: haskell-chip8 ROM_FILE_PATH [-s|--max-stack-size MAX_STACK_SIZE] 
                     [-t|--tick-rate TICK_RATE_INTERVAL] [-v|--verbose]
  emulate execution of a CHIP-8 rom

Available options:
  ROM_FILE_PATH            path to rom file
  -s,--max-stack-size MAX_STACK_SIZE
                           max stack size / recursion depth (default: 50)
  -t,--tick-rate TICK_RATE_INTERVAL
                           tick rate in microseconds per instruction
                           (default: 2000)
  -v,--verbose             enable debug logging if flag is set
  -h,--help                Show this help text

this will create a window through which you can interact with the rom execution. use the keyboard keys 0 to 9 and a to f as described on the wikipedia page in the header above.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published