Commit Graph

31 Commits

Author SHA1 Message Date
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
527f65c69b Refactored audio to use ClockedQueue
It now actually checks the clock and tries to mix the audio in sync
relative to the clock, but the cpal output doesn't yet try to sync
to the StreamInstant time.  Sound seems a lot better on chrome in
wasm, but and kind of better on firefox despite frame skipping not
being supported yet, but it's way slower for some reason (12fps)
2023-05-07 10:03:25 -07:00
transistor
3471eb4e8c Removed WindowUpdater and BlitableSurface 2023-05-03 22:42:24 -07:00
transistor
03561f1427 Fixed a bug in the frequency setting code for ym2612
It was previously only updating the frequency if the A0 registers
were written last, but now it works the way the rate code does, using
the cached register values to set the frequency whenever a register
is written to.  It also stores the fnumber and block in the operator
which I guess would be needed eventually if I want to save and restore
state.
2023-04-24 23:04:11 -07:00
transistor
31faf70d97 Fixed many bugs in ym2612, and switched to square wave
- The envelope generator wasn't working as it should have, minor issues
  with the limits and whether to use 10-bit or 12-bit values (more to come)
- fixed issues with sustain level where it was always set to 0
- fixed release rate and levels to make them 5-bit and 10-bit numbers
  respectively, so they match the others
- switched from SineWave to SquareWave and this alone made it go from
  terrible and muddy to not that far off.  I probably need to completely
  change the output

- also included an attempt at removing HostData, still needed for an
  interrupt that is triggered by user input
2023-04-24 20:47:52 -07:00
transistor
5740550c95 Non-working implementation of the ym2612 envelope
It does something, but doesn't work as it should.  It could be a few
things including the on/off signal being too slow due to how time
works in the sample generation, but I wanted to at least commit what
I have.  It seems to work roughly right according to the forum post
that describes the chip's operation in detail, but there could still
be some glaring bugs
2023-04-23 10:38:33 -07:00
transistor
941c793523 Added pixel encoding, requested by frontend
The hope was that this would reduce the amount of copying and bit
shifting required by the frontend to get the data on screen, but
it doesn't seem to offer much advantage, surprisingly.  I'll leave
it in though.  There are a few other minor tweaks included here to
try to improve the performance a bit
2023-03-25 10:51:46 -07:00
transistor
e6614f3e15 Refactored to allow dummy audio for console frontend 2023-03-14 20:05:29 -07:00
transistor
2cc7db8bf5 Fixed some grammatical mistakes 2022-12-14 20:14:09 -08:00
transistor
0876d85626 Fixed giltching from audio frame assembly from queue
It wasn't copying the frame data from the sources to the output frame
correctly, and there was a small period of zeros at the start of the
frame.

I also converted to using a vec of tuples for the two channels to
make it easier to reason about, since some of the issues were related
to the differences sizes calculated from the clock based on the sample
rate
2022-10-08 16:17:17 -07:00
transistor
f464bfa1e0 Fixed audio glitch (but haven't cleaned up code) 2022-01-26 11:12:09 -08:00
transistor
749a9d2250 Added binary to test simple synth sounds for ym2612 2022-01-18 20:24:18 -08:00
transistor
d21e2c4d6a Updated dev.to link in part3 post 2022-01-14 10:17:16 -08:00
transistor
a8b59fd668 Updated part3 of Emulating the Genesis 2022-01-13 15:53:40 -08:00
transistor
867f41b77f Added dev.to link to part 2 post 2022-01-12 10:55:43 -08:00
transistor
878bad0b26 Updated part 2 of the Emulating the Genesis series 2022-01-12 10:37:50 -08:00
transistor
22aca270c0 Added dev.to links to posts 2022-01-10 10:00:26 -08:00
transistor
2b51dd3fdd Added part 3 of the Emulating the Genesis series 2022-01-09 21:19:13 -08:00
transistor
2e9a9aa8d9 Minor fixes 2022-01-09 21:18:11 -08:00
transistor
3fc1f6270b Added part 2 of the Emulating the Genesis series 2022-01-09 15:43:41 -08:00
transistor
dac7ff259e Minor fixes 2022-01-09 15:35:15 -08:00
transistor
7a185846ed Added part 1 of the Emulating The Genesis series 2022-01-09 12:38:40 -08:00
transistor
ba298fad64 Minor refactoring 2022-01-08 19:48:04 -08:00
transistor
bf938855e1 Fixed final major bug with hscroll, where I needed to multiply by 32 instead of 16 2021-12-26 21:29:01 -08:00
transistor
ac9ec8840c Fixed hscroll issue (vscroll and hscroll were backwards) 2021-12-26 19:45:45 -08:00
transistor
10ca0c7995 Added watch command to debugger
It's a bit weirdly implemented because the Addressable trait doesn't
have access to System, so it has to set a flag on the Bus which is
then checked during the step function in System to activate the
breakpoint if a watched memory location was written to
2021-12-26 16:32:15 -08:00
transistor
4c99cbf240 Added dev logs 2021-12-23 19:32:48 -08:00
transistor
7fe83ad4a3 Fixed capitalization 2021-11-28 10:36:51 -08:00
transistor
1a94fca86a Minor fix 2021-11-28 09:48:31 -08:00
transistor
9ab12229c0 Renamed post 2021-11-27 21:52:37 -08:00
transistor
87fffde9c9 Added post 2021-11-27 09:39:38 -08:00