Giter Site home page Giter Site logo

nim_chip8's Introduction

This repo. is implementation of chip8 emulator in Nim.

Note

Obviously you need nim.
If you don't have it, install it.
This repo was tested on >= 1.4.8, <2.0.0.

Currently, you need at least 128x47 space to see this program runnning. This program will run in Unix/Linux-like systems because it uses termios to handle the output.

It seems some ROMs don't work as expected, have some bugs in the codes.

ROMs

Some kind people are providing ROMs, please use those or create by yourself.

Keys

To quit manually, press ESCAPE.

Input keys are replaced for keyboards.

original key:
  1 2 3 C
  4 5 6 D
  7 8 9 E
  A 0 B F

is mapped to
  1 2 3 4
  q w e r
  a s d f
  z x c v

You can also run by each single instruction.

  • press SPACE to suspend the emulator
  • press ENTER to step one instruction

Compile

cd src
make

Run

chip8 <ROM.ch8>

sample image of emulator is runnning

nim_chip8's People

Contributors

a-maumau avatar

Watchers

 avatar  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.