Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseWASIMachine

Hierarchy

Index

Constructors

constructor

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

m_wasi

m_wasi: any

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

wasiInstance

wasiInstance: any

wasmFs

wasmFs: default

Methods

advanceFrameClock

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

connectAudio

connectProbe

connectVideo

  • connectVideo(pixels: Uint32Array): void

copyProbeData

  • copyProbeData(): void

fetchBIOS

  • fetchBIOS(): Promise<void>

fetchWASM

  • fetchWASM(): Promise<void>

getAudioParams

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

    • sampleRate: number
    • stereo: boolean

Abstract getCPUState

getDebugTree

getImports

  • getImports(wmod: Module): any

getPC

  • getPC(): number

getSP

  • getSP(): number

initWASM

  • initWASM(): Promise<void>

isStable

  • isStable(): boolean

loadBIOS

  • loadBIOS(srcArray: Uint8Array): void
  • Parameters

    • srcArray: Uint8Array

    Returns void

loadControlsState

  • loadControlsState(state: any): void

loadROM

  • loadROM(rom: Uint8Array): void
  • Parameters

    • rom: Uint8Array

    Returns void

Abstract loadState

loadWASM

  • loadWASM(): 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

saveControlsState

  • saveControlsState(): any

Abstract saveState

stdoutWrite

  • stdoutWrite(buffer: any): any
  • Parameters

    • buffer: any

    Returns any

syncAudio

  • syncAudio(): void

syncVideo

  • syncVideo(): void

write

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

    • address: number
    • value: number

    Returns void

Generated using TypeDoc