1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-09 17:29:36 +00:00

Flood the zone with sources; work incomplete.

This commit is contained in:
Thomas Harte 2024-01-19 11:45:29 -05:00
parent 040f276bf1
commit 55d7a7e5f6
2 changed files with 34 additions and 6 deletions

View File

@ -103,7 +103,7 @@ uint8_t WD1770::read(int address) {
if(status_.type == Status::One)
status |= (status_.spin_up ? Flag::SpinUp : 0);
}
// LOG("Returned status " << PADHEX(2) << int(status) << " of type " << 1+int(status_.type));
// logger.info().append("Returned status %02x of type %d", status, 1+int(status_.type));
return status;
}
case 1:

View File

@ -13,9 +13,33 @@ namespace Log {
// But I prefer C files to C++ streams, so here it is for now.
enum class Source {
WDFDC,
SCSI,
ADB,
Amiga,
AmigaDisk,
AmigaCopper,
AmigaChipset,
AmigaBlitter,
AtariST,
DirectAccessDevice,
Enterprise,
i8272,
IntelligentKeyboard,
IWM,
M50740,
Macintosh,
MasterSystem,
MFP68901,
MSX,
NCR5380,
OpenGL,
SCC,
SCSI,
StaticAnalyser,
SZX,
TapeUEF,
TMS9918,
TZX,
WDFDC,
};
constexpr bool is_enabled(Source source) {
@ -27,15 +51,19 @@ constexpr bool is_enabled(Source source) {
switch(source) {
default: return true;
// The following are all things I'm not actively working on.
case Source::NCR5380:
case Source::SCC: return false;
}
}
constexpr const char *prefix(Source source) {
switch(source) {
case Source::WDFDC: return "WD FDC";
case Source::SCSI: return "SCSI";
case Source::SCC: return "SCC";
case Source::StaticAnalyser: return "Analyser";
case Source::WDFDC: return "WD FDC";
case Source::SCSI: return "SCSI";
case Source::SCC: return "SCC";
case Source::NCR5380: return "5380";
}
}