Commit Graph

5 Commits

Author SHA1 Message Date
Will Angenent
825840a9b6 Removed unused var 2018-05-14 23:03:12 +01:00
Will Angenent
95eb6fb575 Shortened audio attenuation 2018-05-14 22:44:44 +01:00
Will Angenent
31a4ba8cf6 Adjusted clock frequency to be ever so slightly more correct 2018-05-14 18:51:50 +01:00
Will Angenent
8284073beb Added very basic audio processing
Every frame sends a bunch of audio samples in a channel. This channel is
consumed by the audio Read() function which is called asynchronously. There's
all kinds of timing issues where the audio/video are not aligned.

Issues:
- There's a large delay between the audio being produced and it being played
- Something with the timing is wrong. The first not of lemonade stand and the
  system beep are both incorrect. Changing the CPU frequency fixes it for one
  but not for the other. This means something must be wrong in the cycle
  counting.

Also added FPS display that can be toggled with ctrl-alt-F.
2018-05-14 10:49:24 +01:00
Will Angenent
d89c7babf0 Refactored memory read/write to MMU
This required moving some common things in a new package to resolve a circular
dependency between cpu <=> mmu.
2018-05-09 19:31:15 +01:00