Code Monkey home page Code Monkey logo

cilly's Introduction

cilly

A CHIP8 interpreter

Currently only compatible with games written in the original CHIP8 instruction set

Build From Source

Building Prequisites

Windows

How to use MSYS to build

After installation, launch the environment for your chosen compiler and target architecture, and install the listed packages.

Compiler Architecture Environment Packages
gcc 32-bit MINGW32 pacman -S mingw-w64-i686-gcc mingw-w64-i686-SDL2
gcc 64-bit UCRT64 pacman -S mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-SDL2
clang 32-bit CLANG32 pacman -S mingw-w64-clang-i686-clang mingw-w64-clang-i686-SDL2
clang 64-bit CLANG64/UCRT64 UCRT64:
pacman -S mingw-w64-ucrt-x86_64-clang mingw-w64-ucrt-x86_64-SDL2
CLANG64:
pacman -S mingw-w64-x86_64-clang mingw-w64-clang-x86_64-SDL2

Also install git and make:

pacman -S git make
Linux
  • gcc or clang
  • SDL2
  • Make

Compiling

Clone the repo and navigate to the directory:

git clone https://github.com/rondelfino/cilly.git
cd cilly

Default compilation uses gcc, and is in debug 64-bit mode:

make

Compile in release mode:

make release=1 

Compile in 32-bit mode:

make arch=32

If you want to use clang:

make CC=clang

Usage

./bin/[OS]/[build-mode]/cilly [clock-speed-in-Hz] [path/to/rom]

Or:

make run [clock-speed-in-hz] [path/to/rom]

make help to list available commands.

TODO

  • Wayland/Win32 or SDL
  • Quirks
  • Makefile: add option to change packaged executable destination
  • Accurate COSMAC-VIP support (opcode timings)
  • SCHIP 1.1 support
  • XO-CHIP support
    • These platforms will automatically set the respective quirks
  • Flags to change change/set quirks manually
  • Debugger
  • GUI for rom loading, setting clock, manually setting quirks, and choosing platform

Resources

cilly's People

Contributors

rondelfino avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.