Commit Graph

8 Commits

Author SHA1 Message Date
transistor
af1c660dc0 Modified to use submodule for emulator-hal 2024-03-10 00:06:22 -08:00
transistor
cff6a48cc7 Refactoring m68k to use a temporary cycle struct
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.
2024-03-02 23:48:19 -08:00
transistor
83289d6b8e Modified Z80 to use a custom error type 2024-03-02 10:57:16 -08:00
transistor
55efc4f406 Split some parts of moa-core into libraries/ 2024-03-01 21:17:09 -08:00
transistor
a161dcda8a Renamed modules to use kebab case 2024-02-24 19:26:28 -08:00
transistor
671517aab7 Modified to use crates.io version of femtos 2024-02-24 19:16:46 -08:00
transistor
9ff431ebc6 Split clocks into femtos crate 2024-02-24 13:02:09 -08:00
transistor
083f3607ba Major reorganization into crates
I wanted to make this a bit more modular, so it's easier in theory to
write external crates that can reuse bits, and selectively compile in
bits, such as adding new systems or new cpu implementations
2022-09-24 23:14:03 -07:00