1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-25 11:17:26 +00:00

Embraces std::make_[unique/shared] in place of .reset(new .

This commit is contained in:
Thomas Harte
2019-12-23 21:31:46 -05:00
parent ac604b30f3
commit 0dae608da5
40 changed files with 86 additions and 68 deletions
+7 -3
View File
@@ -91,11 +91,15 @@ uint8_t WD1770::get_register(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));
LOG("Returned status " << PADHEX(2) << int(status) << " of type " << 1+int(status_.type));
return status;
}
case 1: return track_;
case 2: return sector_;
case 1:
LOG("Returned track " << int(track_));
return track_;
case 2:
LOG("Returned sector " << int(sector_));
return sector_;
case 3:
update_status([] (Status &status) {
status.data_request = false;
+1 -1
View File
@@ -12,7 +12,7 @@
#include <cstring>
#define LOG_PREFIX "[MFP] "
//#define NDEBUG
#define NDEBUG
#include "../../Outputs/Log.hpp"
using namespace Motorola::MFP68901;