瀏覽代碼

Basic start of 6502 chip emulation. Mostly empty.

master
Bryan Miller 5 年之前
父節點
當前提交
ff07d6a8b9
共有 1 個檔案被更改,包括 11 行新增0 行删除
  1. +11
    -0
      src/6502.js

+ 11
- 0
src/6502.js 查看文件

@@ -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…
取消
儲存