1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 17:16:44 +00:00

Further reduce printf footprint.

This commit is contained in:
Thomas Harte
2024-02-15 13:41:35 -05:00
parent b4a3b23571
commit 093a029b8c
6 changed files with 5 additions and 12 deletions
-1
View File
@@ -12,7 +12,6 @@
#include "Implementation/6526Storage.hpp"
#include "../Serial/Line.hpp"
#include "../../Outputs/Log.hpp"
namespace MOS::MOS6526 {
@@ -11,6 +11,7 @@
#include <array>
#include "../../../ClockReceiver/ClockReceiver.hpp"
#include "../../../Outputs/Log.hpp"
namespace MOS::MOS6526 {
@@ -220,7 +221,8 @@ struct MOS6526Storage {
control = v;
if(v&2) {
printf("UNIMPLEMENTED: PB strobe\n");
Log::Logger<Log::Source::MOS6526> log;
log.error().append("UNIMPLEMENTED: PB strobe");
}
}
-4
View File
@@ -55,10 +55,6 @@ uint8_t IWM::read(int address) {
logger.info().append("Invalid read\n");
return 0xff;
// "Read all 1s".
// printf("Reading all 1s\n");
// return 0xff;
case 0:
case ENABLE: { /* Read data register. Zeroing afterwards is a guess. */
const auto result = data_register_;
@@ -30,7 +30,6 @@ DoubleDensityDrive::DoubleDensityDrive(int input_clock_rate, bool is_800k) :
// MARK: - Speed Selection
void DoubleDensityDrive::did_step(Storage::Disk::HeadPosition to_position) {
// printf("At track %d\n", to_position.as_int());
// The 800kb drive automatically selects rotation speed as a function of
// head position; the 400kb drive doesn't do so.
if(is_800k_) {