This project emulates the Intel 8080 CPU used to run Space Invaders. It also runs Space Invaders in a playable state (I will not be accepting comments about my gaming skills at this time):
This project depends on SDL2 for rendering graphics. To install SDL2 on macOS with Homebrew:
brew install sdl2Then, to build:
makeOr with another C compiler:
CC=clang makeWith debug symbols:
make clean && make debugFor the first argument, the executable takes the folder containing invaders.h, invaders.g, etc. So with the following folder structure,
βββ intel8080
βββ invaders
βββ invaders.e
βββ invaders.f
βββ invaders.g
βββ invaders.h
the command would be:
./intel8080 invadersTo step through one instruction at a time (useful for debugging or as a reference), use the -s option:
./intel8080 -s invadersCurrently only single player mode is supported. The mappings are as follows:
| Action | Button |
|---|---|
| Insert coin | C |
| Start | Enter |
| Left | β |
| Right | β |
| Fire | Space |
Controls do not work in step mode.
