1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-27 18:55:48 +00:00

Merge pull request #1260 from TomHarte/QuietPC

Mostly silence PC.
This commit is contained in:
Thomas Harte 2023-12-07 22:12:12 -05:00 committed by GitHub
commit e55a09962f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 19 deletions

View File

@ -31,7 +31,7 @@ class i8237 {
template <int address>
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 <int address>
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;

View File

@ -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();