1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-26 09:29:45 +00:00

Prevents undefined behaviour from the CPC's timer.

This commit is contained in:
Thomas Harte 2017-10-17 22:40:32 -04:00
parent 57ee09dffb
commit 88e2350b8f

View File

@ -35,8 +35,6 @@ namespace AmstradCPC {
*/
class InterruptTimer {
public:
InterruptTimer() : timer_(0), interrupt_request_(false) {}
/*!
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
@ -93,10 +91,10 @@ class InterruptTimer {
}
private:
int reset_counter_;
bool interrupt_request_;
bool last_interrupt_request_;
int timer_;
int reset_counter_ = 0;
bool interrupt_request_ = false;
bool last_interrupt_request_ = false;
int timer_ = 0;
};
/*!