1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-11 08:30:55 +00:00

Hack attack: ignore TC.

This commit is contained in:
Thomas Harte 2023-12-01 17:30:32 -05:00
parent b16e3de170
commit bc89cb7d06
2 changed files with 4 additions and 3 deletions

View File

@ -136,9 +136,9 @@ class i8237 {
///
/// @returns Either a 16-bit address or @c NotAvailable if the requested channel isn't set up to perform a read or write at present.
uint32_t access(size_t channel, bool is_write) {
if(channels_[channel].transfer_complete) {
return NotAvailable;
}
// if(channels_[channel].transfer_complete) {
// return NotAvailable;
// }
if(is_write && channels_[channel].transfer != Channel::Transfer::Write) {
return NotAvailable;
}

View File

@ -154,6 +154,7 @@ class FloppyController {
for(int c = 0; c < 128 << target.size; c++) {
if(!dma_.write(2, pair.second.samples[0].data()[c])) {
printf("FDC: DMA not permitted\n");
wrote_in_full = false;
break;
}