Browse Source

Moved all MOS-based chips into a single MOS directory. Modified test names to match. Updated all affected files to reflect new path and file name changes.

master
Bryan Miller 5 years ago
parent
commit
37709db2ee
8 changed files with 11 additions and 11 deletions
  1. +0
    -0
      src/MOS/6502/assembler.js
  2. +2
    -2
      src/MOS/6502/cpu.js
  3. +0
    -0
      src/MOS/6502/index.js
  4. +3
    -3
      src/MOS/CIA.js
  5. +3
    -3
      test/test-order.spec.js
  6. +1
    -1
      test/unit.src.MOS.6502.assembler.spec.js
  7. +1
    -1
      test/unit.src.MOS.6502.cpu.spec.js
  8. +1
    -1
      test/unit.src.MOS.CIA.spec.js

src/MOS6502/assembler.js → src/MOS/6502/assembler.js View File


src/MOS6502/cpu.js → src/MOS/6502/cpu.js View File

/* /*
* 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/MOS6502/index.js → src/MOS/6502/index.js View File


src/MOSCIA.js → src/MOS/CIA.js View File

const IO = require('./io.js');
const BCD = require('./utils/bcd.js');
const BITM = require('./utils/bitman.js');
const IO = require('../io.js');
const BCD = require('../utils/bcd.js');
const BITM = require('../utils/bitman.js');


function EnableICBit(cia, pos){ function EnableICBit(cia, pos){
v = 1 << pos; v = 1 << pos;

+ 3
- 3
test/test-order.spec.js View File

require('./unit.src.clock.spec.js'); require('./unit.src.clock.spec.js');
require('./unit.src.utils.spec.js'); require('./unit.src.utils.spec.js');
require('./unit.src.memory.spec.js'); require('./unit.src.memory.spec.js');
require('./unit.src.MOSCIA.spec.js');
require('./unit.src.MOS6502.assembler.spec.js');
require('./unit.src.MOS6502.cpu.spec.js');
require('./unit.src.MOS.CIA.spec.js');
require('./unit.src.MOS.6502.assembler.spec.js');
require('./unit.src.MOS.6502.cpu.spec.js');



test/unit.src.MOS6502.assembler.spec.js → test/unit.src.MOS.6502.assembler.spec.js View File

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




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

test/unit.src.MOS6502.cpu.spec.js → test/unit.src.MOS.6502.cpu.spec.js View File

const expect = require('chai').expect; const expect = require('chai').expect;
const MOS6502 = require('../src/MOS6502');
const MOS6502 = require('../src/MOS/6502');
const Mem = require('../src/memory'); const Mem = require('../src/memory');





test/unit.src.MOSCIA.spec.js → test/unit.src.MOS.CIA.spec.js View File

const expect = require('chai').expect; const expect = require('chai').expect;
const MOSCIA = require('../src/MOSCIA.js');
const MOSCIA = require('../src/MOS/CIA.js');




describe("MOSCIA Tests...", function(){ describe("MOSCIA Tests...", function(){

Loading…
Cancel
Save