Skip to content

thiagoslino/Cuis-Smalltalk-Chip8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cuis-Smalltalk-Chip8

Yet Another Chip 8 Emulator

What is it?

This project is a Chip 8 emulator (interpreter) written in Cuis Smalltalk.

The original goal of these project was to learn how to code a simple emulator in smalltalk.

alt text

ROMs

A collection of public domain ROMs that can be used with this emulator can be found at:

Running a ROM

After cloning this repo, open a workspace in Cuis and type:

Feature require: 'Chip8'.

And then:

Chip8Presenter runProgram: '/path/to/rom/filename'.

The CHIP-8 had no specified clock speed, so we'll use a delay to control it. Different games run best at different speeds, so we can control it here.

Resources

Regular Keys

The original Chip 8 had a keypad with the numbered keys 0 - 9 and A - F (16 keys in total). Without any modifications to the emulator, the keys are mapped as follows:

Chip 8 Keypad Keyboard Key
1 2 3 C 1 2 3 4
4 5 6 D Q W E R
7 8 9 E A S D F
A 0 B F Z X C V

TODO

  • Automatic ROMs download from Zophar
  • Better morphic configuration (to configure speed, roms download button, pause, etc...)

Releases

No releases published

Packages

No packages published