UNPKG

eighty-eighty-js

Version:

A nice little Intel 8080 emulator for Node.js and Browser!

21 lines (20 loc) 666 B
import { u8 } from 'typed-numbers'; /** * Handles opcode operations. */ export declare class Opcode { /** * Get amount of CPU cycles for an operation. * @param opcode - The operation's code. */ static getCycles(opcode: u8): number; /** * Get string representation of an opcode. * @param opcode - The operation's code. */ static toString(opcode: u8): string; /** Contains amount of CPU cycles for each opcode. */ protected static readonly OP_CYCLES_TABLE: number[]; /** Contains string representation of each opcode. */ protected static readonly ASM_TABLE: Record<number, string>; }