mirror of
https://github.com/transistorfet/moa.git
synced 2024-11-25 15:33:08 +00:00
cff6a48cc7
I'm trying to extract the memory/bus interface, and pass it in at the start of each cycle instead of having the BusPort permanently embedded, which will allow migrating to emulator-hal. The functional way would be argument drilling; passing an extra argument to each function in the entire execution core. The problem is that it's messy, so a solution that is still functional is to implement all of the execution logic on a newtype that contains a reference to the mutable state and the owned cycle data, and at the end of the cycle, decompose the M68kCycleGuard that holds the reference, and keep the cycle data for debugging purposes.
32 lines
730 B
TOML
32 lines
730 B
TOML
[package]
|
|
name = "moa-pixels"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
log = "0.4"
|
|
pixels = "0.12"
|
|
winit = "0.28"
|
|
femtos = "0.1"
|
|
|
|
moa-core = { path = "../../core" }
|
|
moa-common = { path = "../common", features = ["audio"] }
|
|
moa-host = { path = "../../libraries/host" }
|
|
|
|
moa-systems-genesis = { path = "../../systems/genesis" }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
console_error_panic_hook = "0.1"
|
|
console_log = "1.0"
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
web-sys = "0.3"
|
|
wgpu = { version = "0.15", features = ["webgl"] }
|
|
instant = { version = "0.1", features = [ "wasm-bindgen" ] }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
env_logger = "0.9"
|
|
pollster = "0.2"
|
|
instant = "0.1"
|
|
|