Implemented DMA controller disable, PC2086/3086 self test works properly.

This commit is contained in:
TomW 2013-12-29 16:05:24 +00:00
commit fce6ba5ea8

View file

@ -252,6 +252,9 @@ int dma_channel_read(int channel)
{ {
uint16_t temp; uint16_t temp;
if (dma.command & 0x04)
return DMA_NODATA;
if (!AT) if (!AT)
refreshread(); refreshread();
@ -317,6 +320,9 @@ int dma_channel_read(int channel)
int dma_channel_write(int channel, uint16_t val) int dma_channel_write(int channel, uint16_t val)
{ {
if (dma.command & 0x04)
return DMA_NODATA;
if (!AT) if (!AT)
refreshread(); refreshread();