Class Cpu

A 16-bit LJD cpu

Hierarchy

  • Cpu

Implements

Constructors

  • Parameters

    • programRom: Uint16Array
    • dataRom: Uint16Array
    • ioRam1: Uint16Array
    • ioRam2: Uint16Array

    Returns Cpu

Properties

carryFlag: boolean = false
dataRam: Uint16Array = ...
instructionCounter: number = 0
ioRam: Uint16Array
overflowFlag: boolean = false
registers: Uint16Array = ...

Methods

  • Runs the cpu for n clocks. Executes one instruction per clock tick.

    Returns

    The ioRam buffer that was updated.

    Parameters

    • n: number

      The number of clock cycles to execute.

    Returns Uint16Array

Generated using TypeDoc