OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
500a2a0
)
[VM][MB8877][FM77AV40] Try: Faster timing.
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Wed, 19 Aug 2015 05:06:10 +0000
(14:06 +0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Wed, 19 Aug 2015 05:06:10 +0000
(14:06 +0900)
source/src/vm/mb8877.cpp
patch
|
blob
|
history
diff --git
a/source/src/vm/mb8877.cpp
b/source/src/vm/mb8877.cpp
index
589c712
..
e1e471b
100644
(file)
--- a/
source/src/vm/mb8877.cpp
+++ b/
source/src/vm/mb8877.cpp
@@
-1238,9
+1238,9
@@
double MB8877::get_usec_to_detect_index_hole(int count, bool delay)
position = (position + disk[drvreg]->get_bytes_per_usec(DELAY_TIME)) % disk[drvreg]->get_track_size();
}
int bytes = disk[drvreg]->get_track_size() * count - position;
-
//
if(bytes < 0) {
-
//
bytes += disk[drvreg]->get_track_size();
-
//
}
+
if(bytes < 0) {
+
bytes += disk[drvreg]->get_track_size();
+
}
double time = disk[drvreg]->get_usec_per_bytes(bytes);
if(delay) {
time += DELAY_TIME;