mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 18:30:21 +00:00
Added a field-filling constructor for pulses.
This commit is contained in:
parent
1e7b5330f5
commit
3e925e80a3
@ -29,10 +29,13 @@ namespace Tape {
|
||||
class Tape {
|
||||
public:
|
||||
struct Pulse {
|
||||
enum {
|
||||
enum Type {
|
||||
High, Low, Zero
|
||||
} type;
|
||||
Time length;
|
||||
|
||||
Pulse(Type type, Time length) : type(type), length(length) {}
|
||||
Pulse() {}
|
||||
};
|
||||
|
||||
virtual Pulse get_next_pulse() = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user