UNPKG

broken-neees

Version:

A really broken NEEES emulator that introduces glitches and random bugs on purpose!

24 lines (23 loc) 575 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _DPCM = _interopRequireDefault(require("../lib/apu/DPCM")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } class DMCChannel { constructor(apu, cpu) { this.apu = apu; this.cpu = cpu; this.registers = this.apu.registers.dmc; this.outputSample = 0; this.dpcm = new _DPCM.default(this); } sample() { return this.outputSample; } step() { this.dpcm.update(); } } exports.default = DMCChannel;