1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-14 23:27:26 +00:00

Decrease indentation.

This commit is contained in:
Thomas Harte
2024-12-06 13:52:42 -05:00
parent e8aa9b9eb2
commit 08f98aa32f
2 changed files with 578 additions and 576 deletions

View File

@@ -224,8 +224,7 @@ class SerialPort : public ::Commodore::Serial::Port {
/*! /*!
Provides the bus over which the Vic 6560 fetches memory in a Vic-20. Provides the bus over which the Vic 6560 fetches memory in a Vic-20.
*/ */
class Vic6560BusHandler { struct Vic6560BusHandler {
public:
/// Performs a read on behalf of the 6560; in practice uses @c video_memory_map and @c colour_memory to find data. /// Performs a read on behalf of the 6560; in practice uses @c video_memory_map and @c colour_memory to find data.
forceinline void perform_read(uint16_t address, uint8_t *pixel_data, uint8_t *colour_data) { forceinline void perform_read(uint16_t address, uint8_t *pixel_data, uint8_t *colour_data) {
*pixel_data = video_memory_map[address >> 10] ? video_memory_map[address >> 10][address & 0x3ff] : 0xff; // TODO *pixel_data = video_memory_map[address >> 10] ? video_memory_map[address >> 10][address & 0x3ff] : 0xff; // TODO
@@ -762,7 +761,10 @@ class ConcreteMachine:
using namespace Commodore::Vic20; using namespace Commodore::Vic20;
std::unique_ptr<Machine> Machine::Vic20(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher) { std::unique_ptr<Machine> Machine::Vic20(
const Analyser::Static::Target *target,
const ROMMachine::ROMFetcher &rom_fetcher
) {
using Target = Analyser::Static::Commodore::Target; using Target = Analyser::Static::Commodore::Target;
const Target *const commodore_target = dynamic_cast<const Target *>(target); const Target *const commodore_target = dynamic_cast<const Target *>(target);
return std::make_unique<Vic20::ConcreteMachine>(*commodore_target, rom_fetcher); return std::make_unique<Vic20::ConcreteMachine>(*commodore_target, rom_fetcher);

View File

@@ -25,7 +25,7 @@ class Machine {
virtual ~Machine() = default; virtual ~Machine() = default;
/// Creates and returns a Vic-20. /// Creates and returns a Vic-20.
static std::unique_ptr<Machine> Vic20(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher); static std::unique_ptr<Machine> Vic20(const Analyser::Static::Target *, const ROMMachine::ROMFetcher &);
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options>, public Configurable::QuickloadOption<Options> { class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options>, public Configurable::QuickloadOption<Options> {
friend Configurable::DisplayOption<Options>; friend Configurable::DisplayOption<Options>;