GithubHelp home page GithubHelp logo

taniarascia / chip8 Goto Github PK

View Code? Open in Web Editor NEW
415.0 11.0 43.0 469 KB

๐ŸŽฎ โ€Ž A Chip-8 emulator written in JavaScript for web, CLI, and native UI.

Home Page: https://taniarascia.github.io/chip8/

License: MIT License

JavaScript 95.13% HTML 3.28% CSS 1.58%
chip-8 chip-8-emulator javascript node emulator

chip8's People

Contributors

itsbasvandam avatar stellartux avatar taniarascia avatar xiaoyu2006 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chip8's Issues

So cool!

This is so cool! Found chip8 through the dependency list on npm.im/raylib. Just a note that I've updated it to raylib 3.5.0. Tested out the update in chip8, and it still works well.

Awesome work! ๐Ÿš€

Mix control keys

The action of W always opens the Wall game instead of moving left or right in Tetris or Invaders.

Bad command ADD(Vx, Vy).

Command ADD(Vx, Vy) is described like this:

8xy4 - ADD Vx, Vy

Set Vx = Vx + Vy, set VF = carry.
The values of Vx and Vy are added together. If the result is greater than 8 bits (i.e., > 255,) VF is set to 1, otherwise 0. Only the lowest 8 bits of the result are kept, and stored in Vx.

But at

this.registers[0xf] = this.registers[args[0]] + this.registers[args[1]] > 0xff ? 1 : 0

this.registers[args[0]] is already modified at the previous line
this.registers[args[0]] += this.registers[args[1]]

and also has lost it's higher bits.

I think Line#249 should be moved before Line#248.

npm install fail on windows

Description

After cloning the repo I tried to install node modules and failed.

System info

  • OS: Windows 10 Enterprise build 18362
  • Node version: v10.16.0
  • NPM version: 6.13.0

Error output

PS C:\Users\szenadam\dev\chip8> npm i

> [email protected] postinstall C:\Users\szenadam\dev\chip8\node_modules\raylib
> cmake-js compile

[ 'C:\\Program Files\\nodejs\\node.exe',
  'C:\\Users\\szenadam\\dev\\chip8\\node_modules\\cmake-js\\bin\\cmake-js',
  'compile' ]
ERR! OMG CMake is not installed. Install CMake.
ERR! OMG CMake is not installed. Install CMake.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\szenadam\AppData\Roaming\npm-cache\_logs\2020-01-09T08_57_06_862Z-debug.log

Suggested resolution

Update README so that it is clear that CMake is also a dependency before running npm i

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.