mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
machine/amigafdc.cpp: simplify dsksync behaviour, makes swordsod and itcame to boot without hacks at very least (#10895)
This commit is contained in:
parent
e76e82c9e4
commit
d93b5a2cf4
@ -289,25 +289,11 @@ void amiga_fdc_device::live_run(const attotime &limit)
|
|||||||
if(dma_state == DMA_WAIT_START) {
|
if(dma_state == DMA_WAIT_START) {
|
||||||
cur_live.bit_counter = 0;
|
cur_live.bit_counter = 0;
|
||||||
|
|
||||||
if(!(dsklen & 0x3fff))
|
if(dsklen & 0x3fff)
|
||||||
|
dma_state = DMA_RUNNING_BYTE_0;
|
||||||
|
else
|
||||||
dma_done();
|
dma_done();
|
||||||
else if(dsklen & 0x4000) {
|
}
|
||||||
dskbyt |= 0x2000;
|
|
||||||
cur_live.bit_counter = 0;
|
|
||||||
dma_value = dma_read();
|
|
||||||
|
|
||||||
} else {
|
|
||||||
LOGSYNC("%s: DSKSYNC on %06x %d\n", this->tag(), dskpt, dma_state);
|
|
||||||
dma_write(dsksync);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if(dma_state != DMA_IDLE) {
|
|
||||||
LOGSYNC("%s: DSKSYNC on %06x %d\n", this->tag(), dskpt, dma_state);
|
|
||||||
dma_write(dsksync);
|
|
||||||
cur_live.bit_counter = 0;
|
|
||||||
|
|
||||||
} else if(cur_live.bit_counter != 8)
|
|
||||||
cur_live.bit_counter = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dskbyt |= 0x1000;
|
dskbyt |= 0x1000;
|
||||||
|
Loading…
Reference in New Issue
Block a user