OSDN Git Service

[VM][General] Merge Upstream 20180530.
[csp-qt/common_source_project-fm7.git] / source / src / vm / hd146818p.cpp
index 3a0d939..da352f0 100644 (file)
@@ -154,8 +154,7 @@ void HD146818P::event_callback(int event_id, int err)
                update_intr();
        } else if(event_id == EVENT_SQW) {
                // periodic interrupt
-               sqw = !sqw;
-               if(sqw) {  // OK? 20180516 K.Ohta
+               if((sqw = !sqw) == true) {
                        regs[0x0c] |= 0x40;
                        update_intr();
                }