Code Monkey home page Code Monkey logo

n_e_s's Introduction

n e s

Description

Modular cycle-accurate NES emulator implemented from scratch in modern C++ and built with the help of modern CMake, or that's the goal at least. If all goes according to plan, you should be able to rip the 6502 CPU library out of this and make a C64 or Apple ][ or whatever emulator based on it.

Building

Clone!

git clone https://github.com/evilcorpltd/n_e_s.git

Build!

mkdir build_ && cd build_
cmake ..
make
make test

n_e_s's People

Contributors

cjuub avatar johnor avatar mkiael avatar ricardicus avatar robinlinden avatar sa12123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

n_e_s's Issues

LSR should clear N flag

It seems like the negative status flag should always be cleared when doing a LSR operation: https://www.c64-wiki.com/wiki/LSR

LSR affects 3 of the CPU's status flags:

  • The negative status flag is always unconditionally cleared.
  • The zero flag is cleared unless the operand is zero
  • The carry flag is copied from the least significant bit (bit 0) of the operand prior to shifting

We do not clear the negative status flag right now:

        case LSR_A:
            pipeline_.push([=]() {
                set_carry(registers_->a & 1);
                registers_->a &= ~1;
                registers_->a >>= 1;
                set_zero(registers_->a);
            });

Add missing dummy reads/writes

A lot of the 6502 instructions write even when they have no reason to. We've skipped this in places. We should set up an integration test checking dummy reads/writes and add them as they can cause side-effects.

Look into replacing Appveyor w/ Azure devops

Azure devops supports multiple parallel jobs and unlimited build minutes for open source projects. Appveyor's VS2019 job has been broken for weeks and only supports 1 build at a time meaning our Appveyor CI is always what's blocking the longest.

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.