mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-21 21:33:54 +00:00
Remove much unused storage; add virtual destructor.
This commit is contained in:
parent
eca0984739
commit
3793fbd978
@ -24,6 +24,8 @@ namespace Activity {
|
||||
*/
|
||||
class Observer {
|
||||
public:
|
||||
virtual ~Observer() {}
|
||||
|
||||
/// Provides hints as to the sort of information presented on an LED.
|
||||
enum LEDPresentation: uint8_t {
|
||||
/// This LED informs the user of some sort of persistent state, e.g. scroll lock.
|
||||
|
@ -322,8 +322,6 @@ struct MOS6526Storage {
|
||||
static constexpr int TestInputNow = 1 << 8;
|
||||
|
||||
static constexpr int PendingClearMask = ~(ReloadNow | OneShotNow | ApplyClockNow);
|
||||
|
||||
bool active_ = false;
|
||||
} counter_[2];
|
||||
|
||||
static constexpr int InterruptInOne = 1 << 0;
|
||||
|
@ -213,7 +213,7 @@ struct Line: public Command {
|
||||
}
|
||||
|
||||
private:
|
||||
int position_, numerator_, denominator_, duration_;
|
||||
int position_, numerator_, denominator_;
|
||||
};
|
||||
|
||||
// MARK: - Single pixel manipulation.
|
||||
|
@ -225,9 +225,9 @@ class Chipset: private ClockingHint::Observer {
|
||||
uint16_t get_status();
|
||||
|
||||
private:
|
||||
uint16_t value = 0, reload = 0;
|
||||
uint16_t shift = 0, receive_shift = 0;
|
||||
uint16_t status;
|
||||
// uint16_t value = 0, reload = 0;
|
||||
// uint16_t shift = 0, receive_shift = 0;
|
||||
// uint16_t status;
|
||||
} serial_;
|
||||
|
||||
// MARK: - Pixel output.
|
||||
|
@ -96,21 +96,21 @@ class Keyboard {
|
||||
}
|
||||
|
||||
private:
|
||||
enum class ShiftState {
|
||||
Shifting,
|
||||
AwaitingHandshake,
|
||||
Idle,
|
||||
} shift_state_ = ShiftState::Idle;
|
||||
// enum class ShiftState {
|
||||
// Shifting,
|
||||
// AwaitingHandshake,
|
||||
// Idle,
|
||||
// } shift_state_ = ShiftState::Idle;
|
||||
|
||||
enum class State {
|
||||
Startup,
|
||||
} state_ = State::Startup;
|
||||
|
||||
int bit_phase_ = 0;
|
||||
uint32_t shift_sequence_ = 0;
|
||||
int bits_remaining_ = 0;
|
||||
// int bit_phase_ = 0;
|
||||
// uint32_t shift_sequence_ = 0;
|
||||
// int bits_remaining_ = 0;
|
||||
|
||||
uint8_t lines_ = 0;
|
||||
// uint8_t lines_ = 0;
|
||||
|
||||
Serial::Line<true> &output_;
|
||||
std::array<bool, 128> pressed_{};
|
||||
|
@ -38,7 +38,7 @@ class MemoryMap {
|
||||
|
||||
// Establish bank mapping.
|
||||
uint8_t next_region = 0;
|
||||
auto region = [&next_region, this]() -> uint8_t {
|
||||
auto region = [&]() -> uint8_t {
|
||||
assert(next_region != this->regions.size());
|
||||
return next_region++;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user