OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[VM][General] Merge Upstream 20180530.
[csp-qt/common_source_project-fm7.git]
/
source
/
src
/
vm
/
hd146818p.cpp
diff --git
a/source/src/vm/hd146818p.cpp
b/source/src/vm/hd146818p.cpp
index
3a0d939
..
da352f0
100644
(file)
--- a/
source/src/vm/hd146818p.cpp
+++ b/
source/src/vm/hd146818p.cpp
@@
-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();
}