1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-13 00:29:14 +00:00

Merge pull request #1428 from TomHarte/MoreIndentation

Adjust more dangling indentation changes.
This commit is contained in:
Thomas Harte 2024-12-04 22:40:30 -05:00 committed by GitHub
commit 88b31ea940
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
45 changed files with 5530 additions and 5528 deletions

View File

@ -70,7 +70,7 @@ private:
uint8_t track_;
std::shared_ptr<Sector> sector_cache_[65536];
void process_input_bit(const int value) {
void process_input_bit(const int value) override {
shift_register_ = ((shift_register_ << 1) | unsigned(value)) & 0x3ff;
bit_count_++;
}
@ -107,7 +107,7 @@ private:
}
}
void process_index_hole() {
void process_index_hole() override {
index_count_++;
}

View File

@ -133,43 +133,43 @@ class ConcreteMachine:
// rom_[0x36402] = 2;
// rom_[0x36403] = 0x7c; // ROM_CHECKSUM [working, when hacks like this are removed]
// rom_[0x36404] = 0x6c;
//
// rom_[0x36403] = 0x82; // MOVIRAM [working]
// rom_[0x36404] = 0x67;
//
// rom_[0x36403] = 0x2c; // SOFT_SW [working]
// rom_[0x36404] = 0x6a;
//
// rom_[0x36403] = 0xe8; // RAM_ADDR [working]
// rom_[0x36404] = 0x6f;
//
// rom_[0x36403] = 0xc7; // FPI_SPEED [working]
// rom_[0x36404] = 0x6a;
//
// rom_[0x36403] = 0xd7; // SER_TST [broken]
// rom_[0x36404] = 0x68;
//
// rom_[0x36403] = 0xdc; // CLOCK [broken]
// rom_[0x36404] = 0x6c;
//
// rom_[0x36403] = 0x1b; // BAT_RAM [broken]
// rom_[0x36404] = 0x6e;
//
// rom_[0x36403] = 0x11; // FDB (/ADB?) [broken]
// rom_[0x36404] = 0x6f;
//
// rom_[0x36403] = 0x41; // SHADOW_TST [working]
// rom_[0x36404] = 0x6d;
//
// rom_[0x36403] = 0x09; // CUSTOM_IRQ [broken?]
// rom_[0x36404] = 0x6b;
//
// rom_[0x36403] = 0xf4; // DOC_EXEC
// rom_[0x36404] = 0x70;
//
// rom_[0x36403] = 0xab; // ECT_SEQ
// rom_[0x36404] = 0x64;
//
// rom_[0xfc146f] = rom_[0xfc1470] = 0xea;
size_t ram_size = 0;

View File

@ -26,7 +26,8 @@ constexpr uint8_t reverse_byte(uint8_t byte) {
}
/*! Provides a class capable of generating a CRC from source data. */
template <typename IntType, IntType reset_value, IntType output_xor, bool reflect_input, bool reflect_output> class Generator {
template <typename IntType, IntType reset_value, IntType output_xor, bool reflect_input, bool reflect_output>
class Generator {
public:
/*!
Instantiates a CRC16 that will compute the CRC16 specified by the supplied

View File

@ -24,13 +24,13 @@ namespace Outputs::Display {
class Metrics {
public:
/// Notifies Metrics of a beam event.
void announce_event(ScanTarget::Event event);
void announce_event(ScanTarget::Event);
/// Notifies Metrics that the size of the output buffer has changed.
void announce_did_resize();
/// Provides Metrics with a new data point for output speed estimation.
void announce_draw_status(size_t lines, std::chrono::high_resolution_clock::duration duration, bool complete);
void announce_draw_status(size_t lines, std::chrono::high_resolution_clock::duration, bool complete);
/// Provides Metrics with a new data point for output speed estimation, albeit without line-specific information.
void announce_draw_status(bool complete);

View File

@ -45,7 +45,8 @@ template <typename... S> constexpr bool are_properly_ordered() {
An owner may optionally assign relative volumes.
*/
template <typename... T> class CompoundSource:
public Outputs::Speaker::BufferSource<CompoundSource<T...>, ::Outputs::Speaker::is_stereo<T...>()> {
public Outputs::Speaker::BufferSource<CompoundSource<T...>, ::Outputs::Speaker::is_stereo<T...>()>
{
private:
template <typename... S> class CompoundSourceHolder {
public:

View File

@ -75,7 +75,7 @@ template <typename BusHandler, bool uses_ready_line> class Processor: public Pro
@param cycles The number of cycles to run the 6502 for.
*/
void run_for(const Cycles cycles);
void run_for(const Cycles);
/*!
Sets the current level of the RDY line.

View File

@ -376,7 +376,7 @@ struct PartialMachineCycle {
}
PartialMachineCycle(const PartialMachineCycle &rhs) noexcept;
PartialMachineCycle(Operation operation, HalfCycles length, uint16_t *address, uint8_t *value, bool was_requested) noexcept;
PartialMachineCycle(Operation, HalfCycles, uint16_t *address, uint8_t *value, bool was_requested) noexcept;
PartialMachineCycle() noexcept;
};
@ -395,7 +395,7 @@ class BusHandler {
during some periods or may impose wait states so predictably that it's more efficient just to add them
via this mechanism.
*/
HalfCycles perform_machine_cycle([[maybe_unused]] const PartialMachineCycle &cycle) {
HalfCycles perform_machine_cycle([[maybe_unused]] const PartialMachineCycle &) {
return HalfCycles(0);
}
};
@ -439,7 +439,7 @@ class ProcessorBase: public ProcessorStorage {
how many cycles before now the line changed state. The value may not be longer than the
current machine cycle. If called at any other time, this must be zero.
*/
inline void set_interrupt_line(bool value, HalfCycles offset = 0);
inline void set_interrupt_line(bool, HalfCycles offset = 0);
/*!
Gets the value of the interrupt line.
@ -451,7 +451,7 @@ class ProcessorBase: public ProcessorStorage {
@param offset See discussion in set_interrupt_line.
*/
inline void set_non_maskable_interrupt_line(bool value, HalfCycles offset = 0);
inline void set_non_maskable_interrupt_line(bool, HalfCycles offset = 0);
/*!
Gets the value of the non-maskable interrupt line.
@ -461,7 +461,7 @@ class ProcessorBase: public ProcessorStorage {
/*!
Sets the logical value of the reset line.
*/
inline void set_reset_line(bool value);
inline void set_reset_line(bool);
/*!
Gets whether the Z80 would reset at the next opportunity.
@ -505,12 +505,12 @@ template <class T, bool uses_bus_request, bool uses_wait_line> class Processor:
@param cycles The number of cycles to run for.
*/
void run_for(const HalfCycles cycles);
void run_for(const HalfCycles);
/*!
Sets the logical value of the bus request line, having asserted that this Z80 supports the bus request line.
*/
void set_bus_request_line(bool value);
void set_bus_request_line(bool);
/*!
Gets the logical value of the bus request line.
@ -520,7 +520,7 @@ template <class T, bool uses_bus_request, bool uses_wait_line> class Processor:
/*!
Sets the logical value of the wait line, having asserted that this Z80 supports the wait line.
*/
void set_wait_line(bool value);
void set_wait_line(bool);
/*!
Gets the logical value of the bus request line.
@ -530,7 +530,7 @@ template <class T, bool uses_bus_request, bool uses_wait_line> class Processor:
private:
T &bus_handler_;
void assemble_page(InstructionPage &target, InstructionTable &table, bool add_offsets);
void assemble_page(InstructionPage &, InstructionTable &, bool add_offsets);
void copy_program(const MicroOp *source, std::vector<MicroOp> &destination);
};