OSDN Git Service

[VM][MB8877][FM77AV40] Try: Faster timing.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 19 Aug 2015 05:06:10 +0000 (14:06 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 19 Aug 2015 05:06:10 +0000 (14:06 +0900)
source/src/vm/mb8877.cpp

index 589c712..e1e471b 100644 (file)
@@ -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;