mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-18 16:30:29 +00:00
Commit SDL and Qt project files; improve commenting.
This commit is contained in:
parent
17bac4c8cf
commit
6ca8aa99fc
@ -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);
|
||||
};
|
||||
/*!
|
||||
|
@ -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();
|
||||
|
@ -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 \
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user