1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Commit SDL and Qt project files; improve commenting.

This commit is contained in:
Thomas Harte 2021-02-10 21:28:32 -05:00
parent 17bac4c8cf
commit 6ca8aa99fc
4 changed files with 17 additions and 5 deletions

View File

@ -27,12 +27,25 @@ class Bus {
public:
Bus(HalfCycles clock_speed);
/*!
Advances time; ADB is a clocked serial signal.
*/
void run_for(HalfCycles);
/*!
Adds a device to the bus, returning the index it should use
to refer to itself in subsequent calls to set_device_output.
*/
size_t add_device();
/*!
Sets the current data line output for @c device.
*/
void set_device_output(size_t device, bool output);
/*!
@returns The current state of the ADB data line.
*/
bool get_state() const;
enum class Event {
@ -46,7 +59,7 @@ class Bus {
struct Observer {
/// Reports to an observer that @c event was observed in the activity
/// observed on this bus.
/// observed on this bus. If this was a byte event, that byte's value is given as @c value.
virtual void adb_bus_did_observe_event(Bus *, Event event, uint8_t value = 0xff);
};
/*!

View File

@ -22,10 +22,6 @@ class GLU: public InstructionSet::M50740::PortHandler {
public:
GLU();
// Behaviour varies slightly between the controller shipped with ROM01 machines
// and that shipped with ROM03 machines; use this to set the desired behaviour.
// void set_is_rom03(bool);
uint8_t get_keyboard_data();
uint8_t get_mouse_data();
uint8_t get_modifier_status();

View File

@ -73,6 +73,7 @@ SOURCES += \
\
$$SRC/Machines/*.cpp \
$$SRC/Machines/AmstradCPC/*.cpp \
$$SRC/Machines/Apple/ADB/*.cpp \
$$SRC/Machines/Apple/AppleII/*.cpp \
$$SRC/Machines/Apple/AppleIIgs/*.cpp \
$$SRC/Machines/Apple/Macintosh/*.cpp \
@ -197,6 +198,7 @@ HEADERS += \
\
$$SRC/Machines/*.hpp \
$$SRC/Machines/AmstradCPC/*.hpp \
$$SRC/Machines/Apple/ADB/*.hpp \
$$SRC/Machines/Apple/AppleII/*.hpp \
$$SRC/Machines/Apple/AppleIIgs/*.hpp \
$$SRC/Machines/Apple/Macintosh/*.hpp \

View File

@ -67,6 +67,7 @@ SOURCES += glob.glob('../../InstructionSets/x86/*.cpp')
SOURCES += glob.glob('../../Machines/*.cpp')
SOURCES += glob.glob('../../Machines/AmstradCPC/*.cpp')
SOURCES += glob.glob('../../Machines/Apple/ADB/*.cpp')
SOURCES += glob.glob('../../Machines/Apple/AppleII/*.cpp')
SOURCES += glob.glob('../../Machines/Apple/AppleIIgs/*.cpp')
SOURCES += glob.glob('../../Machines/Apple/Macintosh/*.cpp')