Skip to content

Spittie/chip8-sdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

chip8-sdl

Space Invaders

Simple chip8 emulator, wrote in spaghetti C and with SDL for graphic and input. It implements all the opcodes (but 0NNN), but it's not bug free. It run many games/programs, but not all yet.

How to run

  • Download main.c
  • Compile with "gcc main.c -std=c99 -lSDL -o chip8-sdl"
  • Run with "./chip8-sdl "

Tested under Linux, but it should compile everywhere it's avaiable a C compiler and SDL.

To-Do

  • Fix opcodes
  • Refactor code
  • Implement some kind of timer (right now the emulator just run as fast as it can, if you domment "SDL_Delay(1);")
  • Add sound
  • Add gui (?)
  • Use OpenGL instead of SDL for drawing
  • Implement super/mega chip8 opcodes
  • Better performance

Programs/games

http://www.chip8.com/?page=109 contain probably every program/game ever written for the chip8.

Tutorial/documentation

To write this emulator, I've read tutorial and documentation from the following sources:

Thanks!

About

Simple chip8 emulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages