瀏覽代碼

Moved MOS6502 out of the chip directory. Adjusted tests accordingly.

master
Bryan Miller 5 年之前
父節點
當前提交
ecd453d812
共有 5 個檔案被更改,包括 4 行新增4 行删除
  1. +0
    -0
      src/MOS6502/assembler.js
  2. +2
    -2
      src/MOS6502/cpu.js
  3. +0
    -0
      src/MOS6502/index.js
  4. +1
    -1
      test/unit.src.MOS6502.assembler.spec.js
  5. +1
    -1
      test/unit.src.MOS6502.cpu.spec.js

src/chip/MOS6502/assembler.js → src/MOS6502/assembler.js 查看文件


src/chip/MOS6502/cpu.js → src/MOS6502/cpu.js 查看文件

/* /*
* Emulate a basic 6502 (MOS) chip. * Emulate a basic 6502 (MOS) chip.
*/ */
const BITM = require('../../utils/bitman.js');
var IMem = require('../../memory').IMem;
const BITM = require('../utils/bitman.js');
var IMem = require('../memory').IMem;


// mode = 0 - Immediate // mode = 0 - Immediate
// mode = 1 - Zero Page // mode = 1 - Zero Page

src/chip/MOS6502/index.js → src/MOS6502/index.js 查看文件


test/unit.src.chip.MOS6502.assembler.spec.js → test/unit.src.MOS6502.assembler.spec.js 查看文件

const expect = require('chai').expect; const expect = require('chai').expect;
const Assembler = require('../src/chip/MOS6502/assembler.js');
const Assembler = require('../src/MOS6502/assembler.js');




describe("Testing MOS6502 Assembler...", function(){ describe("Testing MOS6502 Assembler...", function(){

test/unit.src.chip.MOS6502.cpu.spec.js → test/unit.src.MOS6502.cpu.spec.js 查看文件

const expect = require('chai').expect; const expect = require('chai').expect;
const CPU = require('../src/chip/MOS6502/cpu.js');
const CPU = require('../src/MOS6502/cpu.js');
const Mem = require('../src/memory'); const Mem = require('../src/memory');





Loading…
取消
儲存