Skip to content

Interpreter of the CHIP-8 language used originally on the COSMAC VIP, with support for many derivatives and combinations. Written in C++, currently requires: SDL3

License

Notifications You must be signed in to change notification settings

coornio/CubeChip-SDL

Repository files navigation

CubeChip (SDL) - WORK IN PROGRESS

An emulator written in C++ and SDL (currently still a WIP) that I started as an effort to learn the language, albeit belatedly. Aiming to be as accurate as possible from an HLE standpoint, while also aiming to be fairly fast on its feet. Input, audio and video are handled through SDL2, and the plan is to use ImGUI later to get an actual interface going, as everything is currently more or less hardcoded and inflexible.

Supported Platforms

Currently supports the following major platforms:

  • CHIP-8 1
  • SUPERCHIP 2
  • XOCHIP 3
  • MEGACHIP 4

The following platform extensions/mods are available:

  • HIRES MPD 5
  • CHIP-8E 6
  • CHIP-8X 7
  • HWCHIP64 8
  • GIGACHIP 9

Some extension combinations aren't possible, see footnotes for now. Later I will add a proper table.

Planned Features

  • Implement SHA1 encoding to hash files for identifying different roms.
  • Utilize nlohmann's JSON class so that I can handle settings files and databases.
  • Utilize the SHA1 hash and JSON to hook up with a rom database.
  • Implement ImGUI to get a rudimentary and reactive interface going instead of the current single render window.
  • Refactor the main loop logic so the SDL event loop isn't running only when a valid rom is present.
  • Refactor the guest class and separate the instruction tree into different platform variants for cleaner, more streamlined code with less branching.
  • Far future: refactor the class system to move away from the monolithic class system in favor of a component system as described in this article.

Footnotes

  1. Also supports legacy behavior mode (planned to be cycle-accurate).

  2. Also supports legacy behavior mode (seen in HP48 graphing calculators).

  3. Also supports 4-planes rendering, and an instruction declined from the official spec.

  4. Potentially officially the first emulator since Mega8 to run the respective demo properly.

  5. Stands for Multi-Page-Display. Runs both original 2-page and 4-page roms, as well as patched roms.

  6. Exclusive mod to CHIP-8 and SUPERCHIP. Does not work with HIRES MPD. Mutually exclusive with CHIP-8X.

  7. Exclusive mod to CHIP-8 and SUPERCHIP. Works with HIRES MPD. Mutually exclusive with CHIP-8E.

  8. Extension to XOCHIP, mutually exclusive with all aforementioned extensions. Designed by @NinjaWeedle.

  9. Derivative of MEGACHIP, though incompatible with it. Offers tons of new texture render features. (WIP). Own design.

About

Interpreter of the CHIP-8 language used originally on the COSMAC VIP, with support for many derivatives and combinations. Written in C++, currently requires: SDL3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages