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:
parent
b16e3de170
commit
bc89cb7d06
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user