summaryrefslogtreecommitdiffstats
path: root/src/tools/gputils/gputils_generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/gputils/gputils_generator.cpp')
-rw-r--r--src/tools/gputils/gputils_generator.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/tools/gputils/gputils_generator.cpp b/src/tools/gputils/gputils_generator.cpp
index 3bcebac..7fd9a1f 100644
--- a/src/tools/gputils/gputils_generator.cpp
+++ b/src/tools/gputils/gputils_generator.cpp
@@ -13,12 +13,12 @@
#include "devices/list/device_list.h"
//----------------------------------------------------------------------------
-QValueList<const Device::Data *> GPUtils::getSupportedDevices(const QString &s)
+TQValueList<const Device::Data *> GPUtils::getSupportedDevices(const TQString &s)
{
- QStringList devices = QStringList::split(' ', s.simplifyWhiteSpace().upper());
- QValueList<const Device::Data *> list;
+ TQStringList devices = TQStringList::split(' ', s.simplifyWhiteSpace().upper());
+ TQValueList<const Device::Data *> list;
for (uint i=0; i<devices.count(); i++) {
- QString name = devices[i];
+ TQString name = devices[i];
if ( devices[i].startsWith("P1") ) name = name.mid(1);
const Device::Data *data = Device::lister().data(name);
if (data) list.append(data);
@@ -49,7 +49,7 @@ SourceLine::List GPUtils::SourceGenerator::sourceFileContent(PURL::ToolType, con
lines.appendTitle(i18n("relocatable code"));
lines.appendNotIndentedCode("PROG CODE");
lines.appendNotIndentedCode("start");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert code") + " >>");
lines.appendIndentedCode("goto $", i18n("loop forever"));
lines.appendEmpty();
lines.appendNotIndentedCode("END");
@@ -77,8 +77,8 @@ SourceLine::List GPUtils::SourceGenerator::sourceFileContent(PURL::ToolType, con
if ( !hasShared ) {
for (uint i=1; i<rdata.nbBanks; i++) {
uint address = first + i*rdata.nbBytesPerBank();
- lines.appendNotIndentedCode(QString("INT_VAR%1 UDATA ").arg(i) + toHexLabel(address, rdata.nbCharsAddress()), i18n("variables used for context saving"));
- lines.appendNotIndentedCode(QString("w_saved%1 RES 1").arg(i), i18n("variable used for context saving"));
+ lines.appendNotIndentedCode(TQString("INT_VAR%1 UDATA ").tqarg(i) + toHexLabel(address, rdata.nbCharsAddress()), i18n("variables used for context saving"));
+ lines.appendNotIndentedCode(TQString("w_saved%1 RES 1").tqarg(i), i18n("variable used for context saving"));
}
}
lines.appendEmpty();
@@ -106,7 +106,7 @@ SourceLine::List GPUtils::SourceGenerator::sourceFileContent(PURL::ToolType, con
lines.appendIndentedCode("movwf pclath_saved");
lines.appendIndentedCode("clrf PCLATH");
}
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert interrupt code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert interrupt code") + " >>");
if (needPCLATH) {
lines.appendIndentedCode("movf pclath_saved,w", i18n("restore context"));
lines.appendIndentedCode("movwf PCLATH");
@@ -118,7 +118,7 @@ SourceLine::List GPUtils::SourceGenerator::sourceFileContent(PURL::ToolType, con
lines.appendIndentedCode("retfie");
lines.appendEmpty();
lines.appendNotIndentedCode("start");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert main code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert main code") + " >>");
lines.appendIndentedCode("goto $", i18n("loop forever"));
lines.appendEmpty();
lines.appendNotIndentedCode("END");
@@ -173,30 +173,30 @@ SourceLine::List GPUtils::SourceGenerator::sourceFileContent(PURL::ToolType, con
lines.appendIndentedCode("goto peripheral_isr", i18n("go to start of peripheral interrupt code"));
lines.appendEmpty();
lines.appendNotIndentedCode("start:");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert main code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert main code") + " >>");
lines.appendIndentedCode("goto $", i18n("loop forever"));
lines.appendEmpty();
lines.appendTitle(i18n("INT pin interrupt service routine"));
lines.appendNotIndentedCode("int_pin_isr:");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert INT pin interrupt code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert INT pin interrupt code") + " >>");
lines.appendIndentedCode("POP");
lines.appendIndentedCode("retfie");
lines.appendEmpty();
lines.appendTitle(i18n("TIMER0 interrupt service routine"));
lines.appendNotIndentedCode("timer0_isr:");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert TIMER0 interrupt code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert TIMER0 interrupt code") + " >>");
lines.appendIndentedCode("POP");
lines.appendIndentedCode("retfie");
lines.appendEmpty();
lines.appendTitle(i18n("T0CKI interrupt service routine"));
lines.appendNotIndentedCode("t0cki_isr:");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert T0CKI interrupt code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert T0CKI interrupt code") + " >>");
lines.appendIndentedCode("POP");
lines.appendIndentedCode("retfie");
lines.appendEmpty();
lines.appendTitle(i18n("peripheral interrupt service routine"));
lines.appendNotIndentedCode("peripheral_isr:");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert peripheral interrupt code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert peripheral interrupt code") + " >>");
lines.appendIndentedCode("POP");
lines.appendIndentedCode("retfie");
lines.appendEmpty();
@@ -229,7 +229,7 @@ SourceLine::List GPUtils::SourceGenerator::sourceFileContent(PURL::ToolType, con
lines.appendIndentedCode("movff STATUS,status_saved", i18n("save context"));
lines.appendIndentedCode("movff WREG,w_saved");
lines.appendIndentedCode("movff BSR,bsr_saved");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert low priority interrupt code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert low priority interrupt code") + " >>");
lines.appendIndentedCode("movff bsr_saved,BSR", i18n("restore context"));
lines.appendIndentedCode("movff w_saved,WREG");
lines.appendIndentedCode("movff status_saved,STATUS");
@@ -237,11 +237,11 @@ SourceLine::List GPUtils::SourceGenerator::sourceFileContent(PURL::ToolType, con
lines.appendEmpty();
lines.appendTitle(i18n("high priority interrupt service routine"));
lines.appendNotIndentedCode("high_interrupt:");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert high priority interrupt code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert high priority interrupt code") + " >>");
lines.appendIndentedCode("retfie FAST");
lines.appendEmpty();
lines.appendNotIndentedCode("start:");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert main code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert main code") + " >>");
lines.appendIndentedCode("goto $", i18n("loop forever"));
lines.appendEmpty();
lines.appendNotIndentedCode("END");