Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseWASMMachine

Hierarchy

Index

Constructors

constructor

  • Parameters

    • prefix: string

    Returns BaseWASMMachine

Properties

audio

audioarr

audioarr: Float32Array

biosarr

biosarr: Uint8Array

biosptr

biosptr: number

cpu

cpu: CPU

cpustatearr

cpustatearr: Uint8Array

cpustateptr

cpustateptr: number

ctrlstatearr

ctrlstatearr: Uint8Array

ctrlstateptr

ctrlstateptr: number

exports

exports: any

instance

instance: Instance

maxROMSize

maxROMSize: number = 0x40000

pixel_dest

pixel_dest: Uint32Array

pixel_src

pixel_src: Uint32Array

prefix

prefix: string

probe

probe: ProbeAll

romarr

romarr: Uint8Array

romlen

romlen: number

romptr

romptr: number

statearr

statearr: Uint8Array

stateptr

stateptr: number

sys

sys: number

Methods

advanceFrameClock

  • advanceFrameClock(trap: any, cpf: number): number
  • Parameters

    • trap: any
    • cpf: number

    Returns number

connectAudio

  • Parameters

    Returns void

connectProbe

  • Parameters

    Returns void

connectVideo

  • connectVideo(pixels: Uint32Array): void
  • Parameters

    • pixels: Uint32Array

    Returns void

copyProbeData

  • copyProbeData(): void
  • Returns void

fetchBIOS

  • fetchBIOS(): Promise<void>
  • Returns Promise<void>

fetchWASM

  • fetchWASM(): Promise<void>
  • Returns Promise<void>

getAudioParams

  • getAudioParams(): { sampleRate: number; stereo: boolean }
  • Returns { sampleRate: number; stereo: boolean }

    • sampleRate: number
    • stereo: boolean

Abstract getCPUState

  • Returns CpuState

getDebugTree

  • Returns EmuState

getImports

  • getImports(wmod: Module): {}
  • Parameters

    • wmod: Module

    Returns {}

getPC

  • getPC(): number
  • Returns number

getSP

  • getSP(): number
  • Returns number

initWASM

  • initWASM(): Promise<void>
  • Returns Promise<void>

isStable

  • isStable(): boolean
  • Returns boolean

loadBIOS

  • loadBIOS(srcArray: Uint8Array): void
  • Parameters

    • srcArray: Uint8Array

    Returns void

loadControlsState

  • loadControlsState(state: any): void
  • Parameters

    • state: any

    Returns void

loadROM

  • loadROM(rom: Uint8Array): void
  • Parameters

    • rom: Uint8Array

    Returns void

Abstract loadState

  • Parameters

    Returns any

loadWASM

  • loadWASM(): Promise<void>
  • Returns Promise<void>

read

  • read(address: number): number
  • Parameters

    • address: number

    Returns number

readConst

  • readConst(address: number): number
  • Parameters

    • address: number

    Returns number

reset

  • reset(): void
  • Returns void

saveControlsState

  • saveControlsState(): any
  • Returns any

Abstract saveState

  • Returns EmuState

syncAudio

  • syncAudio(): void
  • Returns void

syncVideo

  • syncVideo(): void
  • Returns void

write

  • write(address: number, value: number): void
  • Parameters

    • address: number
    • value: number

    Returns void

Generated using TypeDoc