From 9cad9077738657572588a6815c2b1d69d165d7fb Mon Sep 17 00:00:00 2001 From: cam900 Date: Sat, 18 Jun 2022 11:07:36 +0900 Subject: [PATCH] Fix potential register related issue --- src/engine/platform/sms.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/engine/platform/sms.cpp b/src/engine/platform/sms.cpp index 3dc7afc44..0556d2e45 100644 --- a/src/engine/platform/sms.cpp +++ b/src/engine/platform/sms.cpp @@ -52,7 +52,9 @@ void DivPlatformSMS::acquire_nuked(short* bufL, short* bufR, size_t start, size_ for (size_t h=start; hstereo_w(w.val); - else + else if (w.addr==0) { sn->write(w.val); + } writes.pop(); } for (size_t h=start; h