Giter Site home page Giter Site logo

65816.js's Introduction

This project's goal is to fully emulate the 65816 microprocessor in JavaScript.

After achieving that goal the next step will be to create a new branch that will focus on emulating the SNES.  Any CPU related improvements that aren't specific to the SNES will be merged back.

Here is a short example of how to use the emulator:

var cpu = new CPU_65816();
cpu.load_binary("18fba9ff", 0x8000); // Load the program at 0x8000 in memory
cpu.execute(0x8000);                 // Execute starting at 0x8000

65816.js's People

Contributors

pskupinski avatar

Stargazers

Neil McNeight avatar  avatar Chuck Hoffmann avatar  avatar Igor Kroitor avatar Michael Anthony avatar Dusariez Jean-François avatar  avatar Zoltán Majoros avatar  avatar  avatar Frank Yan avatar  avatar Mike Naberezny avatar

Watchers

 avatar  avatar James Cloos avatar Michael Anthony avatar

Forkers

biged

65816.js's Issues

STA(d,S),Y is broken

STA(d,S),Y instead of storing data where expected, loads it from the correct location but then mistakenly uses it as an address and stores A at some random spot in memory.

TXA and TYA are broken

SEP #$30
LDA #1
XBA
LDX #3 
TXA
REP #$30
STA $700

Observed:

[$701]:[$700] contains $0003

Expected:

[$701]:[$700] should contain $0103. An 8-bit transfer should not touch the high bits of the register.

Unit tests failing on IE6-9

As of right now 189 tests fail on both IE6 and IE9 showing that some sort of investigation into why should be done.

cpu.js is far too large

A serious effort needs to be put into cutting down the number of lines of code in cpu.js.

A great deal of code follows a similar pattern and could be turned into generic, reusable functions and customized for the operation being performed. The focus should be on writing a library of functions for the different addressing modes and using those instead of using roughly the same code in plenty of places.

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.