Giter Site home page Giter Site logo

chip-8's People

Contributors

thefarwind avatar

Watchers

 avatar

chip-8's Issues

Turn display into a trait

Currently the ncurses library is baked into the Chip8 struct, rather than being an implementation detail that main is using.

Turn audio into trait

Currently the Audio struct directly references ncurses code. This issue is to create an implementable trait for Audio that chip8 uses.

bit shift instructions (8xy6,8xye) poorly handle x=0xF case

Currently, 0xF case turns into bad values for both of these instructions, because it sets VF to the overflow/underflow, and then shifts that value left or right.

Instead, this (undefined) behavior should follow the pattern set by the other overflow/underflow operations, which is do the operation to VX, then set VF to the overflow/underflow.

Move registers into memory

looking at a magazine post about chip8 from way back in the day, it appears that the registers were originally intended to reside in memory. They should be moved there.

Move ncurses screen to ncurses io structs

Currently, the chip8 machine/processor is passing the screen to each ncurses io object when a method using the screen is called. This should be changed so that each object has a reference to the screen, and the machine/processor has no knowledge of the ncurses library.

Move stack into memory

The stack was designed to live in the memory. this issue is to make the emulator more closely match that design.

Make tests reproducible

Currently, tests heavliy make use of the rand crate. While this is nice for just general checking, if a test fails the test should be reproducible. Therefore, the seed should either be A) Set before hand or B) recorded if an error occurs, and have the random seed be settable.

I would strongly prefer to implement method B.

Add build details to README

there are currently no details on how to build and run debug, build and run release, and run the tests. These should be added to the read me.

Create a debugger

this would allow the user to debug programs written for chip-8 to determine what is occuring.

Add code comments

None of the functions, structs, etc in the code have any code comments on them. Code comments should be added so that the code has documentation.

synchronize emulation with the host system.

running chip-8 unsyncronized seems to work fine, but for larger emulators, they will need to be synchronized with the host system to work properly.

Therefore, it should be implemented here.

Tests are all broken

When switching chip8 such that the audio, display, and input are all fed to a new function, all the tests were broken. This is blocked until after audio, display, and input are implemented as traits (see #20).

Turn input into a trait

Currently ncurses library is pretty hard-baked into the chip-8 device. It should be pulled out such that it's an implementation detail.

Tests: Implement remaining instruction tests

There's a lot of code for testing which remains unimplemented. This code needs fleshed out.

  • 0x00e0
  • 0x00ee
  • 0x0nnn
  • 0x2nnn
  • 0x3xnn
  • 0x4xnn
  • 0x5xy0
  • 0x8xy6
  • 0x8xye
  • 0x9xy0
  • 0xannn
  • 0xcxnn
  • 0xdxyn
  • 0xex9e
  • 0xexa1
  • 0xfx07
  • 0xfx0a
  • 0xfx15
  • 0xfx18
  • 0xfx1e
  • 0xfx29
  • 0xfx33
  • 0xfx55
  • 0xfx65
  • memory write
  • memory set range

move tests to separate file

Currently the tests module is sitting inside of main.rs. This should be moved to a separate file called tests.rs

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.