diff --git a/Machines/PCCompatible/DMA.hpp b/Machines/PCCompatible/DMA.hpp index ddd17f1ea..875449843 100644 --- a/Machines/PCCompatible/DMA.hpp +++ b/Machines/PCCompatible/DMA.hpp @@ -31,7 +31,7 @@ class i8237 { template void write(uint8_t value) { - printf("DMA: Write %02x to %d\n", value, address); +// printf("DMA: Write %02x to %d\n", value, address); switch(address) { default: { @@ -66,7 +66,7 @@ class i8237 { template uint8_t read() { - printf("DMA: Read %d\n", address); +// printf("DMA: Read %d\n", address); switch(address) { default: { constexpr int channel = (address >> 1) & 3; @@ -146,7 +146,7 @@ class i8237 { channel.transfer_complete = false; } - printf("DMA: status is %02x\n", result); +// printf("DMA: status is %02x\n", result); return result; } @@ -157,19 +157,19 @@ class i8237 { } void flip_flop_reset() { - printf("DMA: Flip flop reset\n"); +// printf("DMA: Flip flop reset\n"); next_access_low_ = true; } void mask_reset() { - printf("DMA: Mask reset\n"); +// printf("DMA: Mask reset\n"); for(auto &channel : channels_) { channel.mask = false; } } void master_reset() { - printf("DMA: Master reset\n"); +// printf("DMA: Master reset\n"); flip_flop_reset(); for(auto &channel : channels_) { channel.mask = true; @@ -183,17 +183,17 @@ class i8237 { } void set_reset_mask(uint8_t value) { - printf("DMA: Set/reset mask %02x\n", value); +// printf("DMA: Set/reset mask %02x\n", value); channels_[value & 3].mask = value & 4; } void set_reset_request(uint8_t value) { - printf("DMA: Set/reset request %02x\n", value); +// printf("DMA: Set/reset request %02x\n", value); channels_[value & 3].request = value & 4; } void set_mask(uint8_t value) { - printf("DMA: Set mask %02x\n", value); +// printf("DMA: Set mask %02x\n", value); channels_[0].mask = value & 1; channels_[1].mask = value & 2; channels_[2].mask = value & 4; @@ -201,7 +201,7 @@ class i8237 { } void set_mode(uint8_t value) { - printf("DMA: Set mode %02x\n", value); +// printf("DMA: Set mode %02x\n", value); channels_[value & 3].transfer = Channel::Transfer((value >> 2) & 3); channels_[value & 3].autoinitialise = value & 0x10; channels_[value & 3].address_decrement = value & 0x20; @@ -209,7 +209,7 @@ class i8237 { } void set_command(uint8_t value) { - printf("DMA: Set command %02x\n", value); +// printf("DMA: Set command %02x\n", value); enable_memory_to_memory_ = value & 0x01; enable_channel0_address_hold_ = value & 0x02; enable_controller_ = value & 0x04; diff --git a/Machines/PCCompatible/PCCompatible.cpp b/Machines/PCCompatible/PCCompatible.cpp index 725987d1e..46eca6354 100644 --- a/Machines/PCCompatible/PCCompatible.cpp +++ b/Machines/PCCompatible/PCCompatible.cpp @@ -136,13 +136,13 @@ class FloppyController { case Command::ReadDeletedData: case Command::ReadData: { - printf("FDC: Read from drive %d / head %d / track %d of head %d / track %d / sector %d\n", - decoder_.target().drive, - decoder_.target().head, - drives_[decoder_.target().drive].track, - decoder_.geometry().head, - decoder_.geometry().cylinder, - decoder_.geometry().sector); +// printf("FDC: Read from drive %d / head %d / track %d of head %d / track %d / sector %d\n", +// decoder_.target().drive, +// decoder_.target().head, +// drives_[decoder_.target().drive].track, +// decoder_.geometry().head, +// decoder_.geometry().cylinder, +// decoder_.geometry().sector); status_.begin(decoder_); @@ -304,7 +304,7 @@ class FloppyController { private: void reset() { - printf("FDC reset\n"); +// printf("FDC reset\n"); decoder_.clear(); status_.reset();