mirror of
https://github.com/transistorfet/moa.git
synced 2024-11-28 20:50:13 +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.
13 lines
285 B
TOML
13 lines
285 B
TOML
[package]
|
|
name = "moa-m68k"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
log = "0.4"
|
|
thiserror = "1.0"
|
|
femtos = "0.1"
|
|
moa-core = { path = "../../core" }
|
|
moa-parsing = { path = "../../libraries/parsing" }
|
|
emulator-hal = { path = "/media/work/projects/emulator-hal/emulator-hal" }
|