/* | /* | ||||
* 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 |
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; |
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'); | |||||
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(){ |
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'); | ||||
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(){ |