GitXplorerGitXplorer
a

ChippeD

public
3 stars
0 forks
2 issues

Commits

List of commits on branch master.
Unverified
123320d4c0aa602f524d92214a17ca022d4959e2

[fix/readme] Fix image link

aazihassan committed 5 years ago
Unverified
8501962cb8f0d3aa1e45dbcbafe001513079f667

[fix/readme] Add screenshot and fix key mapping

aazihassan committed 5 years ago
Unverified
59f210efd3ce9deb3e404ea44be7ec6fc63ca24c

Modernize code to compile with new DMD releases

aazihassan committed 5 years ago
Unverified
6ba30f5f1e8800866f39715544e5610b19fc2c43

Replaced SDL_RenderDrawRect with SDL_RenderFillRect

aazihassan committed 10 years ago
Unverified
ffd74086e341715e57f297a023cc839b8cb01fb0

Removed opcode logic from runCycle

aazihassan committed 10 years ago
Unverified
f54a54966d68c8320cd9bde44307962e99337f9d

Changed the layout of the keymapping table.

aazihassan committed 10 years ago

README

The README file for this repository.

Chipped, a Chip8 emulator written in D

Compiling

To compile the project you'll need both DMD and dub. You can then cd to the project's directory (where dub.json is located) and run the command "dub build".

Running

The program takes a few arguments :

  • -z or --zoom N : Changes the resolution to N times the initial resolution of 64x32
  • -d or --debug : Activates the debug mode. This will print the opcodes as they get interpreted as well as the memory addresses.
  • -o or --out FILE : If the debug mode is enabled, the data will be printed to stdout. Use this flag to redirect the output to the FILE of your choice.

A precompiled version for Windows can be downloaded here.

Running tetris

Key mapping

The chip8 has a hexadecimal keyboard of 16 buttons, here are the mappings :

Chip8 Keyboard
1 A
2 Z
3 E
4 Q
5 S
6 D
7 W
8 X
9 C
0 Space bar
A U
B I
C O
D J
E K
F L

In addition to these, the speed of the emulation can be controlled with the P and M buttons. P speeds it up while M slows it down.