Code Monkey home page Code Monkey logo

emul8or's Introduction

Emul8or

A Chip-8 emulator written in Vala and SDL

alt tag

What is Emul8or?

Emul8or is, as the title suggests, a Chip-8 emulator written in the Vala programming language, utilising the SDL library for graphics. It is designed to emulate the Chip-8 and play Chip-8 ROMs.

What is the 'Chip-8'

From Wikipedia:

CHIP-8 is an interpreted programming language, developed by Joseph Weisbecker. It was initially used on the COSMAC VIP and Telmac 1800 8-bit microcomputers in the mid-1970s. CHIP-8 programs are run on a CHIP-8 virtual machine. It was made to allow video games to be more easily programmed for said computers.

Roughly twenty years after CHIP-8 was introduced, derived interpreters appeared for some models of graphing calculators (from the late 1980s onward, these handheld devices in many ways have more computing power than most mid-1970s microcomputers for hobbyists).

Compiling and running the program

Compilation is easy:

make build

Then to execute, simply run:

./emul8or

Warning

You may need to modify your /usr/include/SDL/SDL_keysym.h file for this to compile. For this reason, I have included in this repository a copy of that file. It has a seperate license to the rest of this repository.

Usage

There are 16 keys. These are mapped to the number keys (0-9) and the letters (A-F).

For more information, once compiled run:

./emul8or --help

Installation

To install Emul8or after compilation, run:

sudo make install

emul8or's People

Contributors

zesterer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

moneytech

emul8or's Issues

Error build

~/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a$ make build
Building...
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c: In function ‘emul8or_renderer_run’:
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:388:10: error: ‘SDLK_ZERO’ undeclared (first use in this function); did you mean ‘SDLK_EURO’?
     case SDLK_ZERO:
          ^~~~~~~~~
          SDLK_EURO
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:388:10: note: each undeclared identifier is reported only once for each function it appears in
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:401:10: error: ‘SDLK_ONE’ undeclared (first use in this function); did you mean ‘SDLK_MODE’?
     case SDLK_ONE:
          ^~~~~~~~
          SDLK_MODE
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:414:10: error: ‘SDLK_TWO’ undeclared (first use in this function); did you mean ‘SDLK_TAB’?
     case SDLK_TWO:
          ^~~~~~~~
          SDLK_TAB
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:427:10: error: ‘SDLK_THREE’ undeclared (first use in this function); did you mean ‘SDLK_HOME’?
     case SDLK_THREE:
          ^~~~~~~~~~
          SDLK_HOME
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:440:10: error: ‘SDLK_FOUR’ undeclared (first use in this function); did you mean ‘SDLK_ONE’?
     case SDLK_FOUR:
          ^~~~~~~~~
          SDLK_ONE
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:453:10: error: ‘SDLK_FIVE’ undeclared (first use in this function); did you mean ‘SDLK_FOUR’?
     case SDLK_FIVE:
          ^~~~~~~~~
          SDLK_FOUR
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:466:10: error: ‘SDLK_SIX’ undeclared (first use in this function); did you mean ‘SDLK_FIVE’?
     case SDLK_SIX:
          ^~~~~~~~
          SDLK_FIVE
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:479:10: error: ‘SDLK_SEVEN’ undeclared (first use in this function); did you mean ‘SDLK_FIVE’?
     case SDLK_SEVEN:
          ^~~~~~~~~~
          SDLK_FIVE
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:492:10: error: ‘SDLK_EIGHT’ undeclared (first use in this function); did you mean ‘SDLK_RIGHT’?
     case SDLK_EIGHT:
          ^~~~~~~~~~
          SDLK_RIGHT
/home/gavr/Development/Builds/emul8or-8243afe38d0fc9ed05731542dfb5fb425948310a/src/renderer.vala.c:505:10: error: ‘SDLK_NINE’ undeclared (first use in this function); did you mean ‘SDLK_FIVE’?
     case SDLK_NINE:
          ^~~~~~~~~
          SDLK_FIVE
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
makefile:22: recipe for target 'build' failed
make: *** [build] Error 1

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.