Add LPT device emulation framework.

Move long-broken DAC and Sound Source emulation to new framework.
Add stereo DAC emulation.
This commit is contained in:
SarahW 2017-09-01 11:34:20 +01:00
commit d3232adef5
25 changed files with 785 additions and 334 deletions

View file

@ -1,6 +1,5 @@
#include <stdlib.h>
#include "ibm.h"
#include "dac.h"
#include "io.h"
#include "keyboard.h"
#include "lpt.h"
@ -16,7 +15,7 @@ uint8_t amstrad_read(uint16_t port, void *priv)
switch (port)
{
case 0x379:
return 7 | readdacfifo();
return 7;
case 0x37a:
if (romset == ROM_PC1512) return 0x20;
if (romset == ROM_PC200) return 0x80;