GithubHelp home page GithubHelp logo

chip-8's Introduction

CHIP-8 Emulator

CHIP-8 emulator based on Austin Morlan's CHIP-8 emulator.

This is my first emulator project, and I am hoping to develop a gameboy emulator for my next project.

Here are some takeaways from this project:

  • Always check datatypes and how much data they can store

    • uint8_t only stores 8 bits, so when I did

      uint8_t x = opcode & 0x0F00u;
      x = x  >> 8u;

      x variable ends up only storing 0 since it can only save the first byte. Hence, the variable's datatype should be bigger than 8 bits or do all of operation in one line like below

      uint8_t x = (opcode & 0x0F00u) >> 8u;

Tetris on my CHIP-8 emulator

Usage

Required library: SDL2

Use makefile within source directory to build the emulator

cd source
make

Run the emulator

./chip8 <Scale> <Delay> <ROM>
  • Scale: Multiplier for the window. Scale of 1 is 64 x 32 pixles
  • Delay: Delay between each instruction. Use this to control speed of a program execution
  • ROM: ROM file name. I recommend downloading from this repo

chip-8's People

Contributors

wonjongbot avatar

Stargazers

Andrew Johnson 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.