[Pikloops-svn] SF.net SVN: pikloops: [143] prog/trunk/src/mainwidgetpl.cpp
Brought to you by:
dionysos-sf
|
From: <dio...@us...> - 2007-10-11 15:07:38
|
Revision: 143
http://pikloops.svn.sourceforge.net/pikloops/?rev=143&view=rev
Author: dionysos-sf
Date: 2007-10-11 08:07:42 -0700 (Thu, 11 Oct 2007)
Log Message:
-----------
Harmonious code
Modified Paths:
--------------
prog/trunk/src/mainwidgetpl.cpp
Modified: prog/trunk/src/mainwidgetpl.cpp
===================================================================
--- prog/trunk/src/mainwidgetpl.cpp 2007-10-11 15:06:01 UTC (rev 142)
+++ prog/trunk/src/mainwidgetpl.cpp 2007-10-11 15:07:42 UTC (rev 143)
@@ -133,15 +133,17 @@
tmpCode += "\n";
}
- tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterA(),0,10);
+ if ( loopValues->getCounterA() !=-1 ) {
+ tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterA(),0,10);
tmpCode += QString("\tmovwf\t");
tmpCode += QString(i18n("CounterA"));
tmpCode += "\n\n";
- tmpCode += loopName ;
- tmpCode += "\n" ;
+ tmpCode += loopName ;
+ tmpCode += "\n" ;
tmpCode += QString("\tdecfsz\t");
tmpCode += QString(i18n("CounterA"));
tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopName);
+ }
if ( loopValues->getCounterB() != -1 ) {
tmpCode += QString("\tdecfsz\t");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|