Commit Graph

14 Commits

Author SHA1 Message Date
Will Angenent
1324460d9d Corrected branch cycles timing issue
This fixes the sound timing for the system beep and lemonade stand
2018-05-14 18:51:11 +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
100c44cb11 Added disk controller and disk images ...
With this, DOS3.3 is booting
2018-05-12 13:49:30 +01:00
Will Angenent
7ec43f0299 Added command line disassembler 2018-05-11 10:03:21 +01:00
Will Angenent
a5acfb9140 Renamed InitDisasm to InitInstructionDecoder 2018-05-09 19:32:38 +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
Will Angenent
c2a9e819b1 Made state global, to simplify later refactors 2018-05-09 18:02:57 +01:00
Will Angenent
ad9be4d604 Renamed disasm to debug 2018-05-09 17:35:41 +01:00
Will Angenent
389773cb1d Added keyboard controller 2018-05-09 15:42:31 +01:00
Will Angenent
9c9f826c6a Replaced MemoryMap with an PageTable array
There was no good reason to be using a map when an array lookup would have
done nicely.
2018-05-09 10:36:17 +01:00
Will Angenent
481ddf0ebf Integrated test-vid with test-apple-iie-boot ...
... we have the apple booting up with a well working screen and hanging on
not yet implemented disk I/O.
2018-05-08 22:21:06 +01:00
Will Angenent
5d1c25a724 Added MMU and WIP rudimentary apple //e boot test
Basic memory management has been implemented since $c100-$cfff needs flipping
with soft switches during Apple //e boot. All memory reads & writes now go
through the MMU. Memory is also dynamically allocated and associated with the
CPU state.
2018-05-08 21:48:56 +01:00
Will Angenent
d45e1a4aac Added IRQ/BRK/NMI support + tests 2018-05-07 21:56:40 +01:00
Will Angenent
4b2a4c3730 Initial commit 2018-05-03 12:30:07 +01:00