Browse Source

Basic start of 6502 chip emulation. Mostly empty.

master
Bryan Miller 5 years ago
parent
commit
ff07d6a8b9
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      src/6502.js

+ 11
- 0
src/6502.js View File

@@ -0,0 +1,11 @@
/*
* Emulate a basic 6502 (MOS) chip.
*/

// Registers
var PC = 0; // Program Counter (16 bit)
var IRQ = 0; // IRQ interrupt address code (16 bit)
var SR = 0; // Status Register (8 bit)
var XR = 0; // X Register (8 bit)
var YR = 0; // Y Register (8 bit)
var AR = 0; // Accumulator Register (8 bit)

Loading…
Cancel
Save