Commit Graph

18 Commits

Author SHA1 Message Date
transistor
9ff431ebc6 Split clocks into femtos crate 2024-02-24 13:02:09 -08:00
transistor
83307d5b33 Changed Error type into an enum 2023-06-10 19:29:54 -07:00
transistor
e3861f33b5 Fixed tests and clippy warnings 2023-06-10 17:39:20 -07:00
transistor
3bd4c24ea8 Modified debugger so the input is in the frontend
The debug loop that reads a command and does something is part of the
frontend's main loop, so that it can potentially update, even though
it doesn't actually work for minifb because the command input is a
blocking call.  It's also not implemented in the pixels frontend.
At some point I'll make a web frontend.
2023-06-10 15:28:21 -07:00
transistor
708e7706f3 Fixed many of the undocumented tests
Now it's up to 99% tests passing, 15362 are still failing, but many
of those are the unimplemented IN/OUT instructions, which the Genesis
doesn't seem to use
2023-05-22 21:12:05 -07:00
transistor
8c1a89a1fe Refactored memory access a bit to try to isolate it 2023-05-21 23:14:26 -07:00
transistor
d87319b605 Refactored shift intsructions to not use direction 2023-05-20 15:01:10 -07:00
transistor
f205e231b6 Fixed tests failing due to wrapping into past the end of memory 2023-05-14 21:12:38 -07:00
transistor
f8083db181 Added raddad772/jsmoo's Z80 test runner
Special thanks to raddad772 https://github.com/raddad772

Also added some fixes to the Z80 for panicking math operations, but
it still won't complete due to an unimplemented instruction
2023-05-09 21:50:42 -07:00
transistor
69c94fa3af Removed cpu timer and moved audio wave generators to libraries 2023-04-23 19:52:19 -07:00
transistor
86eb73f78a Added clock argument to addressable operations 2023-04-23 18:49:40 -07:00
transistor
07a675fab5 Added new clock types similar to Duration 2023-04-23 15:46:47 -07:00
transistor
099d557a3f Reorganized m68k tests 2023-03-25 21:27:02 -07:00
transistor
2fe24f325c Refactored m68k execution into functions 2023-03-25 15:12:46 -07:00
transistor
9be996d2a1 More clippy fixes after updating rustc 2023-03-05 20:34:30 -08:00
transistor
7bdd63bc76 Fixed all clippy warnings 2023-03-05 20:19:49 -08:00
transistor
da980b8ae8 Fixed regression when fixing interrupt handling in 68k
Mortal Kombat 2 was working but somewhere while getting the harte
tests to work, I fixed interrupts to change the flags before they're
pushed to the stack, in order to match the expected behaviour from
the tests when an address error occurs (sr is changed and the stack
push causes the error).  I correctly saved the state of sr in the
function for group0 interrupts, to push to the stack later, but the
normal interrupts was saving sr *after* the flags were changed...
Now it saves sr beforehand

I also included some changes to the gfx interface to allow taking
frames, to fix a compile error introduced by the last commit.
2022-09-29 20:21:00 -07: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