Search
Preparing search index...
The search index is not available
8bitworkshop
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
8bitworkshop
wasmplatform
BaseWASIMachine
Class BaseWASIMachine
Hierarchy
BaseWASMMachine
BaseWASIMachine
Index
Constructors
constructor
Properties
audio
audioarr
biosarr
biosptr
cpu
cpustatearr
cpustateptr
ctrlstatearr
ctrlstateptr
exports
instance
m_
wasi
maxROMSize
pixel_
dest
pixel_
src
prefix
probe
romarr
romlen
romptr
statearr
stateptr
sys
wasi
Instance
wasm
Fs
Methods
advance
Frame
Clock
connect
Audio
connect
Probe
connect
Video
copy
Probe
Data
fetchBIOS
fetchWASM
get
Audio
Params
getCPUState
get
Debug
Tree
get
Imports
getPC
getSP
initWASM
is
Stable
loadBIOS
load
Controls
State
loadROM
load
State
loadWASM
read
read
Const
reset
save
Controls
State
save
State
stdout
Write
sync
Audio
sync
Video
write
Constructors
constructor
new
BaseWASIMachine
(
prefix
:
string
)
:
BaseWASIMachine
Parameters
prefix:
string
Returns
BaseWASIMachine
Properties
audio
audio
:
SampledAudioSink
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
wasi
Instance
wasi
Instance
:
any
wasm
Fs
wasm
Fs
:
default
Methods
advance
Frame
Clock
advance
Frame
Clock
(
trap
:
any
, cpf
:
number
)
:
number
Parameters
trap:
any
cpf:
number
Returns
number
connect
Audio
connect
Audio
(
audio
:
SampledAudioSink
)
:
void
Parameters
audio:
SampledAudioSink
Returns
void
connect
Probe
connect
Probe
(
probe
:
ProbeAll
)
:
void
Parameters
probe:
ProbeAll
Returns
void
connect
Video
connect
Video
(
pixels
:
Uint32Array
)
:
void
Parameters
pixels:
Uint32Array
Returns
void
copy
Probe
Data
copy
Probe
Data
(
)
:
void
Returns
void
fetchBIOS
fetchBIOS
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
fetchWASM
fetchWASM
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Audio
Params
get
Audio
Params
(
)
:
{
sampleRate
:
number
;
stereo
:
boolean
}
Returns
{
sampleRate
:
number
;
stereo
:
boolean
}
sample
Rate
:
number
stereo
:
boolean
Abstract
getCPUState
getCPUState
(
)
:
CpuState
Returns
CpuState
get
Debug
Tree
get
Debug
Tree
(
)
:
EmuState
Returns
EmuState
get
Imports
get
Imports
(
wmod
:
Module
)
:
any
Parameters
wmod:
Module
Returns
any
getPC
getPC
(
)
:
number
Returns
number
getSP
getSP
(
)
:
number
Returns
number
initWASM
initWASM
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
is
Stable
is
Stable
(
)
:
boolean
Returns
boolean
loadBIOS
loadBIOS
(
srcArray
:
Uint8Array
)
:
void
Parameters
srcArray:
Uint8Array
Returns
void
load
Controls
State
load
Controls
State
(
state
:
any
)
:
void
Parameters
state:
any
Returns
void
loadROM
loadROM
(
rom
:
Uint8Array
)
:
void
Parameters
rom:
Uint8Array
Returns
void
Abstract
load
State
load
State
(
state
:
EmuState
)
:
any
Parameters
state:
EmuState
Returns
any
loadWASM
loadWASM
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
read
read
(
address
:
number
)
:
number
Parameters
address:
number
Returns
number
read
Const
read
Const
(
address
:
number
)
:
number
Parameters
address:
number
Returns
number
reset
reset
(
)
:
void
Returns
void
save
Controls
State
save
Controls
State
(
)
:
any
Returns
any
Abstract
save
State
save
State
(
)
:
EmuState
Returns
EmuState
stdout
Write
stdout
Write
(
buffer
:
any
)
:
any
Parameters
buffer:
any
Returns
any
sync
Audio
sync
Audio
(
)
:
void
Returns
void
sync
Video
sync
Video
(
)
:
void
Returns
void
write
write
(
address
:
number
, value
:
number
)
:
void
Parameters
address:
number
value:
number
Returns
void
Modules
wasmplatform
BaseWASIMachine
constructor
audio
audioarr
biosarr
biosptr
cpu
cpustatearr
cpustateptr
ctrlstatearr
ctrlstateptr
exports
instance
m_
wasi
maxROMSize
pixel_
dest
pixel_
src
prefix
probe
romarr
romlen
romptr
statearr
stateptr
sys
wasi
Instance
wasm
Fs
advance
Frame
Clock
connect
Audio
connect
Probe
connect
Video
copy
Probe
Data
fetchBIOS
fetchWASM
get
Audio
Params
getCPUState
get
Debug
Tree
get
Imports
getPC
getSP
initWASM
is
Stable
loadBIOS
load
Controls
State
loadROM
load
State
loadWASM
read
read
Const
reset
save
Controls
State
save
State
stdout
Write
sync
Audio
sync
Video
write
BaseWASMMachine
Generated using
TypeDoc