mirror of
https://github.com/TomHarte/CLK.git
synced 2026-01-23 16:16:16 +00:00
Adjust logging.
This commit is contained in:
@@ -233,7 +233,12 @@ public:
|
||||
break;
|
||||
case Command::SenseDriveStatus: {
|
||||
const auto &drive = drives_[decoder_.target().drive];
|
||||
log_.info().append("Sense drive status: track 0 is %d", drive.track == 0);
|
||||
log_.info().append(
|
||||
"Sense drive status: drive %d; track 0 is %d, ready is %d",
|
||||
decoder_.target().drive,
|
||||
drive.track == 0,
|
||||
drive.ready
|
||||
);
|
||||
results_.serialise(
|
||||
decoder_.drive_head(),
|
||||
(drive.track == 0 ? 0x10 : 0x00) |
|
||||
|
||||
@@ -192,7 +192,7 @@ public:
|
||||
uint8_t read(const uint16_t port) {
|
||||
switch(port) {
|
||||
default:
|
||||
// log_.error().append("Unimplemented AT keyboard read from %04x", port);
|
||||
log_.error().append("Unimplemented AT keyboard read from %04x", port);
|
||||
break;
|
||||
|
||||
case 0x0060: {
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
switch(selected_) {
|
||||
default:
|
||||
if(ram_selected()) {
|
||||
// printf("RTC: %02x <- %zu\n", ram_[ram_address()], ram_address());
|
||||
// printf("RTC: %02x from address %zu\n", ram_[ram_address()], ram_address());
|
||||
// if(ram_address() == 1 && ram_[1] == 6) { // Catch reset after passing protected mode test.
|
||||
// should_log = true;
|
||||
// }
|
||||
@@ -125,7 +125,7 @@ private:
|
||||
default:
|
||||
if(ram_selected()) {
|
||||
ram_[ram_address()] = value;
|
||||
printf("RTC: %02x -> %zu\n", value, ram_address());
|
||||
// printf("RTC: %02x to address %zu\n", value, ram_address());
|
||||
}
|
||||
break;
|
||||
case 0x0a: statusA_ = value; break;
|
||||
|
||||
Reference in New Issue
Block a user