nes-emu
Version:
A NES emulator
34 lines (33 loc) • 673 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _constants = require("../constants");
const instructions = () => [
/**
* Force Interrupt
*
* Forces the generation of an interrupt request.
* The program counter and flags (with B2 set) are pushed on the stack, then the IRQ
* interrupt vector at $FFFE/F is loaded into the PC.
*/
{
id: "BRK",
execute: _ref => {
let {
cpu
} = _ref;
cpu.interrupt(_constants.interrupts.IRQ, true);
}
},
/**
* No Operation
*
* Causes no changes at all.
*/
{
id: "NOP",
execute: context => {}
}];
var _default = exports.default = instructions();
;