UNPKG

eighty-eighty-js

Version:

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

18 lines (17 loc) 587 B
import { u8 } from 'typed-numbers'; import { Cpu } from '../core'; export declare class Debug { /** * Converts a number into a hex string with zero-padding. * @param num - The number to convert. * @param minLength - Minimum length of the resulting string. */ static toHexStr(num: number, minLength?: number): string; /** * Print a CPU operation in a readable way. * Call this method AFTER the next Program Counter advanced. * @param opcode * @param cpu */ static printOperation(opcode: u8, cpu: Cpu): void; }