[Pikloops-svn] SF.net SVN: pikloops: [131] prog/trunk/src/pikdelay.cpp
Brought to you by:
dionysos-sf
|
From: <dio...@us...> - 2007-10-09 17:15:21
|
Revision: 131
http://pikloops.svn.sourceforge.net/pikloops/?rev=131&view=rev
Author: dionysos-sf
Date: 2007-10-09 10:15:19 -0700 (Tue, 09 Oct 2007)
Log Message:
-----------
Fix a gpasm warning
Modified Paths:
--------------
prog/trunk/src/pikdelay.cpp
Modified: prog/trunk/src/pikdelay.cpp
===================================================================
--- prog/trunk/src/pikdelay.cpp 2007-10-09 17:12:23 UTC (rev 130)
+++ prog/trunk/src/pikdelay.cpp 2007-10-09 17:15:19 UTC (rev 131)
@@ -48,12 +48,22 @@
if ( MachineCycles <= 766.0 ) {
CounterA = static_cast<int> ((MachineCycles-1.0)/3.0);
MachineCycles = 1 + (3*CounterA);
+
+ if ( CounterA == 256 ) {
+ CounterA = 0;
}
if ( MachineCycles > 766.0 && MachineCycles <= 196350.0 ) {
CounterB = static_cast<int>((MachineCycles + 765.0)/770.0);
CounterA = static_cast<int>((MachineCycles + 765.0 - (770.0 * CounterB))/3.0);
MachineCycles = (3.0 * CounterA) + (770.0 * CounterB) - 765.0;
+
+ if ( CounterA == 256 ) {
+ CounterA = 0;
+ }
+ if ( CounterB == 256 ) {
+ CounterB = 0;
+ }
}
if ( MachineCycles > 196350.0 && MachineCycles <= 50070524.0 ) {
@@ -61,6 +71,16 @@
CounterB = static_cast<int>((MachineCycles + 197116.0 - (196355.0 * CounterC))/770.0);
CounterA = static_cast<int>((MachineCycles + 197116.0 - (196355.0 * CounterC) - (770.0 * CounterB))/3.0);
MachineCycles = (3.0 * CounterA) + (770.0 * CounterB) + (196355.0 * CounterC) - 197116.0;
+
+ if ( CounterA == 256 ) {
+ CounterA = 0;
+ }
+ if ( CounterB == 256 ) {
+ CounterB = 0;
+ }
+ if ( CounterC == 256 ) {
+ CounterC = 0;
+ }
}
if ( MachineCycles > 50070524.0 && MachineCycles <= 12767985148.0 ) {
@@ -70,6 +90,19 @@
CounterA = static_cast<int>((MachineCycles + 50267642.0 - (50070530.0 * CounterD) - (196355.0 * CounterC) - (CounterB * 770.0))/3.0);
MachineCycles = (3.0 * CounterA) + (770.0 * CounterB) + (196355.0 * CounterC) + (50070530.0 * CounterD) - 50267642.0;
+
+ if ( CounterA == 256 ) {
+ CounterA = 0;
+ }
+ if ( CounterB == 256 ) {
+ CounterB = 0;
+ }
+ if ( CounterC == 256 ) {
+ CounterC = 0;
+ }
+ if ( CounterD == 256 ) {
+ CounterD = 0;
+ }
}
/*Waitting for correction*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|