From 1a9cea050e2bc7efaf9fbcde4d60098ae8bb4fba Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 1 Jun 2018 19:48:42 -0400 Subject: [PATCH] Minor: ensure AY registers *read* as 0 from reset, as well as being 0. --- Components/AY38910/AY38910.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/AY38910/AY38910.hpp b/Components/AY38910/AY38910.hpp index 737a0c8ea..e9784a87e 100644 --- a/Components/AY38910/AY38910.hpp +++ b/Components/AY38910/AY38910.hpp @@ -92,7 +92,7 @@ class AY38910: public ::Outputs::Speaker::SampleSource { Concurrency::DeferringAsyncTaskQueue &task_queue_; int selected_register_ = 0; - uint8_t registers_[16]; + uint8_t registers_[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; uint8_t output_registers_[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; uint8_t port_inputs_[2];