mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Prevents undefined behaviour from the CPC's timer.
This commit is contained in:
parent
da580e4186
commit
5c141af734
@ -36,8 +36,6 @@ namespace AmstradCPC {
|
|||||||
*/
|
*/
|
||||||
class InterruptTimer {
|
class InterruptTimer {
|
||||||
public:
|
public:
|
||||||
InterruptTimer() : timer_(0), interrupt_request_(false) {}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Indicates that a new hsync pulse has been recognised. This should be
|
Indicates that a new hsync pulse has been recognised. This should be
|
||||||
supplied on the falling edge of the CRTC HSYNC signal, which is the
|
supplied on the falling edge of the CRTC HSYNC signal, which is the
|
||||||
@ -94,10 +92,10 @@ class InterruptTimer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int reset_counter_;
|
int reset_counter_ = 0;
|
||||||
bool interrupt_request_;
|
bool interrupt_request_ = false;
|
||||||
bool last_interrupt_request_;
|
bool last_interrupt_request_ = false;
|
||||||
int timer_;
|
int timer_ = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user