| 1 | // File: code.cppcxx . . $ `<file>/code.cpp`/ |
| 2 | /* |
| 3 | Pep8-1 is a virtual machine for writing machine language and assembly |
| 4 | language programs. |
| 5 | |
| 6 | Copyright (C) 2009 J. Stanley Warford, Pepperdine University |
| 7 | |
| 8 | This program is free software: you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation, either version 3 of the License, or |
| 11 | (at your option) any later version. |
| 12 | |
| 13 | This program is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | */ |
| 21 | #include "code.h"cxx . . $ `<file>/code.h`/ |
| 22 | #include "argument.h"cxx . . $ `<file>/argument.h`/ |
| 23 | #include "pep.h"cxx . . $ `<file>/pep.h`/ |
| 24 | #include "asm.h"cxx . . $ `<file>/asm.h`/ |
| 25 | #include <QRegExp> |
| 26 | #include <QDebug> |
| 27 | |
| 28 | // appendObjectCode |
| 29 | void UnaryInstructioncxx . . $ UnaryInstruction#::appendObjectCodecxx . . $ UnaryInstruction#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode) |
| 30 | { |
| 31 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 0) || ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. >= Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.))) { |
| 32 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(Pepcxx . . $ Pep#::opCodeMapcxx . . $ Pep#opCodeMap..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(mnemoniccxx . . $ UnaryInstruction#mnemonic.)); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | void NonUnaryInstructioncxx . . $ NonUnaryInstruction#::appendObjectCodecxx . . $ NonUnaryInstruction#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode) |
| 37 | { |
| 38 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 0) || ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. >= Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.))) { |
| 39 | int instructionSpecifier = Pepcxx . . $ Pep#::opCodeMapcxx . . $ Pep#opCodeMap..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(mnemoniccxx . . $ NonUnaryInstruction#mnemonic.); |
| 40 | if (Pepcxx . . $ Pep#::addrModeRequiredMapcxx . . $ Pep#addrModeRequiredMap..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(mnemoniccxx . . $ NonUnaryInstruction#mnemonic.)) { |
| 41 | instructionSpecifier += Pepcxx . . $ Pep#::aaaAddressFieldcxx . . $ Pep#aaaAddressField(c5ddf319c3a3813a).(addressingModecxx . . $ NonUnaryInstruction#addressingMode.); |
| 42 | } |
| 43 | else { |
| 44 | instructionSpecifier += Pepcxx . . $ Pep#::aAddressFieldcxx . . $ Pep#aAddressField(c5ddf319c3a3813a).(addressingModecxx . . $ NonUnaryInstruction#addressingMode.); |
| 45 | } |
| 46 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(instructionSpecifier); |
| 47 | int operandSpecifier = argumentcxx . . $ NonUnaryInstruction#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).(); |
| 48 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(operandSpecifier / 256); |
| 49 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(operandSpecifier % 256); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void DotAddrsscxx . . $ DotAddrss#::appendObjectCodecxx . . $ DotAddrss#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode) |
| 54 | { |
| 55 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 0) || ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. >= Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.))) { |
| 56 | int symbolValue = Pepcxx . . $ Pep#::symbolTablecxx . . $ Pep#symbolTable..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(argumentcxx . . $ DotAddrss#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).()); |
| 57 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(symbolValue / 256); |
| 58 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(symbolValue % 256); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | void DotAsciicxx . . $ DotAscii#::appendObjectCodecxx . . $ DotAscii#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode) |
| 63 | { |
| 64 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 0) || ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. >= Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.))) { |
| 65 | int value; |
| 66 | QStringcxx . . $ QString# str = argumentcxx . . $ DotAscii#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).(); |
| 67 | str.removecxx . . $ QString#remove(6483560ce2afa901).(0, 1); // Remove the leftmost double quote. |
| 68 | str.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); // Remove the rightmost double quote. |
| 69 | while (str.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 70 | Asmcxx . . $ Asm#::unquotedStringToIntcxx . . $ Asm#unquotedStringToInt(ed22d69ba8f9ce68).(str, value); |
| 71 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(value); |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | void DotBlockcxx . . $ DotBlock#::appendObjectCodecxx . . $ DotBlock#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode) |
| 77 | { |
| 78 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 0) || ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. >= Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.))) { |
| 79 | for (int i = 0; i < argumentcxx . . $ DotBlock#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).(); i++) { |
| 80 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(0); |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | void DotBurncxx . . $ DotBurn#::appendObjectCodecxx . . $ DotBurn#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &) |
| 86 | { |
| 87 | // Does not generate code. |
| 88 | } |
| 89 | |
| 90 | void DotBytecxx . . $ DotByte#::appendObjectCodecxx . . $ DotByte#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode) |
| 91 | { |
| 92 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 0) || ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. >= Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.))) { |
| 93 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(argumentcxx . . $ DotByte#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).()); |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | void DotEndcxx . . $ DotEnd#::appendObjectCodecxx . . $ DotEnd#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &) |
| 98 | { |
| 99 | // Does not generate code. |
| 100 | } |
| 101 | |
| 102 | void DotEquatecxx . . $ DotEquate#::appendObjectCodecxx . . $ DotEquate#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &) |
| 103 | { |
| 104 | // Does not generate code. |
| 105 | } |
| 106 | |
| 107 | void DotWordcxx . . $ DotWord#::appendObjectCodecxx . . $ DotWord#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode) |
| 108 | { |
| 109 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 0) || ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. >= Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.))) { |
| 110 | int value = argumentcxx . . $ DotWord#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).(); |
| 111 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(value / 256); |
| 112 | objectCode.appendcxx . . $ QList#append(77d9f17553126ecb).(value % 256); |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | void CommentOnlycxx . . $ CommentOnly#::appendObjectCodecxx . . $ CommentOnly#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &) |
| 117 | { |
| 118 | // Does not generate code. |
| 119 | } |
| 120 | |
| 121 | void BlankLinecxx . . $ BlankLine#::appendObjectCodecxx . . $ BlankLine#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &) |
| 122 | { |
| 123 | // Does not generate code. |
| 124 | } |
| 125 | |
| 126 | void UnaryInstructioncxx . . $ UnaryInstruction#::appendSourceLinecxx . . $ UnaryInstruction#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 127 | { |
| 128 | QStringcxx . . $ QString# memStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(memAddresscxx . . $ Code#memAddress., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 129 | QStringcxx . . $ QString# codeStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Pepcxx . . $ Pep#::opCodeMapcxx . . $ Pep#opCodeMap..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(mnemoniccxx . . $ UnaryInstruction#mnemonic.), 2, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 130 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. < Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.)) { |
| 131 | codeStr =cxx . . $ QString#`operator=`(d02845eef0c33901). " "; |
| 132 | } |
| 133 | QStringcxx . . $ QString# symbolStr = symbolDefcxx . . $ QString#QString(132dd6869045752b).; |
| 134 | if (symbolStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 135 | symbolStr.appendcxx . . $ QString#append(d02845eef0c33901).(":"); |
| 136 | } |
| 137 | QStringcxx . . $ QString# mnemonStr = Pepcxx . . $ Pep#::enumToMnemonMapcxx . . $ Pep#enumToMnemonMap..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(mnemoniccxx . . $ UnaryInstruction#mnemonic.); |
| 138 | QStringcxx . . $ QString# lineStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1%2%3%4%5") |
| 139 | .argcxx . . $ QString#arg(bc823072288cbbb5).(memStr, -6, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 140 | .argcxx . . $ QString#arg(bc823072288cbbb5).(codeStr, -7, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 141 | .argcxx . . $ QString#arg(bc823072288cbbb5).(symbolStr, -9, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 142 | .argcxx . . $ QString#arg(bc823072288cbbb5).(mnemonStr, -8, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 143 | .argcxx . . $ QString#arg(bc823072288cbbb5).(" " +cxx . . $ operator+(c75c3ae4eb9af1a8). commentcxx . . $ Code#comment.); |
| 144 | Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing.->insertcxx . . $ QMap#insert(929a1ed410fe8423).(memAddresscxx . . $ Code#memAddress., assemblerListingList.sizecxx . . $ QList#size(ea6fe5115c70a13f).()); |
| 145 | Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked.->insertcxx . . $ QMap#insert(929a1ed410fe8423).(assemblerListingList.sizecxx . . $ QList#size(ea6fe5115c70a13f).(), Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 146 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 147 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 148 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(true); |
| 149 | } |
| 150 | |
| 151 | void NonUnaryInstructioncxx . . $ NonUnaryInstruction#::appendSourceLinecxx . . $ NonUnaryInstruction#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 152 | { |
| 153 | QStringcxx . . $ QString# memStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(memAddresscxx . . $ Code#memAddress., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 154 | int temp = Pepcxx . . $ Pep#::opCodeMapcxx . . $ Pep#opCodeMap..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(mnemoniccxx . . $ NonUnaryInstruction#mnemonic.); |
| 155 | temp += Pepcxx . . $ Pep#::addrModeRequiredMapcxx . . $ Pep#addrModeRequiredMap..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(mnemoniccxx . . $ NonUnaryInstruction#mnemonic.) ? Pepcxx . . $ Pep#::aaaAddressFieldcxx . . $ Pep#aaaAddressField(c5ddf319c3a3813a).(addressingModecxx . . $ NonUnaryInstruction#addressingMode.) : Pepcxx . . $ Pep#::aAddressFieldcxx . . $ Pep#aAddressField(c5ddf319c3a3813a).(addressingModecxx . . $ NonUnaryInstruction#addressingMode.); |
| 156 | QStringcxx . . $ QString# codeStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(temp, 2, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 157 | QStringcxx . . $ QString# oprndNumStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(argumentcxx . . $ NonUnaryInstruction#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).(), 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 158 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. < Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.)) { |
| 159 | codeStr =cxx . . $ QString#`operator=`(d02845eef0c33901). " "; |
| 160 | oprndNumStr =cxx . . $ QString#`operator=`(d02845eef0c33901). " "; |
| 161 | } |
| 162 | QStringcxx . . $ QString# symbolStr = symbolDefcxx . . $ QString#QString(132dd6869045752b).; |
| 163 | if (symbolStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 164 | symbolStr.appendcxx . . $ QString#append(d02845eef0c33901).(":"); |
| 165 | } |
| 166 | QStringcxx . . $ QString# mnemonStr = Pepcxx . . $ Pep#::enumToMnemonMapcxx . . $ Pep#enumToMnemonMap..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(mnemoniccxx . . $ NonUnaryInstruction#mnemonic.); |
| 167 | QStringcxx . . $ QString# oprndStr = argumentcxx . . $ NonUnaryInstruction#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).(); |
| 168 | if (Pepcxx . . $ Pep#::addrModeRequiredMapcxx . . $ Pep#addrModeRequiredMap..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(mnemoniccxx . . $ NonUnaryInstruction#mnemonic.)) { |
| 169 | oprndStr.appendcxx . . $ QString#append(6a89d0b7f4d2681c).("," +cxx . . $ operator+(c75c3ae4eb9af1a8). Pepcxx . . $ Pep#::intToAddrModecxx . . $ Pep#intToAddrMode(1af896ebbf656e87).(addressingModecxx . . $ NonUnaryInstruction#addressingMode.)); |
| 170 | } |
| 171 | else if (addressingModecxx . . $ NonUnaryInstruction#addressingMode. == Enucxx . . $ Enu/::Xcxx . . $ Enu/X.) { |
| 172 | oprndStr.appendcxx . . $ QString#append(6a89d0b7f4d2681c).("," +cxx . . $ operator+(c75c3ae4eb9af1a8). Pepcxx . . $ Pep#::intToAddrModecxx . . $ Pep#intToAddrMode(1af896ebbf656e87).(addressingModecxx . . $ NonUnaryInstruction#addressingMode.)); |
| 173 | } |
| 174 | QStringcxx . . $ QString# lineStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1%2%3%4%5%6%7") |
| 175 | .argcxx . . $ QString#arg(bc823072288cbbb5).(memStr, -6, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 176 | .argcxx . . $ QString#arg(bc823072288cbbb5).(codeStr, -2) |
| 177 | .argcxx . . $ QString#arg(bc823072288cbbb5).(oprndNumStr, -5, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 178 | .argcxx . . $ QString#arg(bc823072288cbbb5).(symbolStr, -9, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 179 | .argcxx . . $ QString#arg(bc823072288cbbb5).(mnemonStr, -8, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 180 | .argcxx . . $ QString#arg(bc823072288cbbb5).(oprndStr, -12) |
| 181 | .argcxx . . $ QString#arg(bc823072288cbbb5).(commentcxx . . $ Code#comment.); |
| 182 | Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing.->insertcxx . . $ QMap#insert(929a1ed410fe8423).(memAddresscxx . . $ Code#memAddress., assemblerListingList.sizecxx . . $ QList#size(ea6fe5115c70a13f).()); |
| 183 | Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked.->insertcxx . . $ QMap#insert(929a1ed410fe8423).(assemblerListingList.sizecxx . . $ QList#size(ea6fe5115c70a13f).(), Qtcxx . . $ Qt/::Uncheckedcxx . . $ Qt/Unchecked.); |
| 184 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 185 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 186 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(true); |
| 187 | } |
| 188 | |
| 189 | void DotAddrsscxx . . $ DotAddrss#::appendSourceLinecxx . . $ DotAddrss#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 190 | { |
| 191 | QStringcxx . . $ QString# memStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(memAddresscxx . . $ Code#memAddress., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 192 | int symbolValue = Pepcxx . . $ Pep#::symbolTablecxx . . $ Pep#symbolTable..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(argumentcxx . . $ DotAddrss#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).()); |
| 193 | QStringcxx . . $ QString# codeStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(symbolValue, 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 194 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. < Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.)) { |
| 195 | codeStr =cxx . . $ QString#`operator=`(d02845eef0c33901). " "; |
| 196 | } |
| 197 | QStringcxx . . $ QString# symbolStr = symbolDefcxx . . $ QString#QString(132dd6869045752b).; |
| 198 | if (symbolStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 199 | symbolStr.appendcxx . . $ QString#append(d02845eef0c33901).(":"); |
| 200 | } |
| 201 | QStringcxx . . $ QString# dotStr = ".ADDRSS"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 202 | QStringcxx . . $ QString# oprndStr = argumentcxx . . $ DotAddrss#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).(); |
| 203 | QStringcxx . . $ QString# lineStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1%2%3%4%5%6") |
| 204 | .argcxx . . $ QString#arg(bc823072288cbbb5).(memStr, -6, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 205 | .argcxx . . $ QString#arg(bc823072288cbbb5).(codeStr, -7, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 206 | .argcxx . . $ QString#arg(bc823072288cbbb5).(symbolStr, -9, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 207 | .argcxx . . $ QString#arg(bc823072288cbbb5).(dotStr, -8, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 208 | .argcxx . . $ QString#arg(bc823072288cbbb5).(oprndStr, -12) |
| 209 | .argcxx . . $ QString#arg(bc823072288cbbb5).(commentcxx . . $ Code#comment.); |
| 210 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 211 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 212 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 213 | } |
| 214 | |
| 215 | void DotAsciicxx . . $ DotAscii#::appendSourceLinecxx . . $ DotAscii#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 216 | { |
| 217 | QStringcxx . . $ QString# memStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(memAddresscxx . . $ Code#memAddress., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 218 | QStringcxx . . $ QString# str = argumentcxx . . $ DotAscii#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).(); |
| 219 | str.removecxx . . $ QString#remove(6483560ce2afa901).(0, 1); // Remove the leftmost double quote. |
| 220 | str.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); // Remove the rightmost double quote. |
| 221 | int value; |
| 222 | QStringcxx . . $ QString# codeStr = ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 223 | while ((str.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) && (codeStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() < 6)) { |
| 224 | Asmcxx . . $ Asm#::unquotedStringToIntcxx . . $ Asm#unquotedStringToInt(ed22d69ba8f9ce68).(str, value); |
| 225 | codeStr.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(value, 2, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).()); |
| 226 | } |
| 227 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. < Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.)) { |
| 228 | codeStr =cxx . . $ QString#`operator=`(d02845eef0c33901). " "; |
| 229 | } |
| 230 | QStringcxx . . $ QString# symbolStr = symbolDefcxx . . $ QString#QString(132dd6869045752b).; |
| 231 | if (symbolStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 232 | symbolStr.appendcxx . . $ QString#append(d02845eef0c33901).(":"); |
| 233 | } |
| 234 | QStringcxx . . $ QString# dotStr = ".ASCII"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 235 | QStringcxx . . $ QString# oprndStr = argumentcxx . . $ DotAscii#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).(); |
| 236 | QStringcxx . . $ QString# lineStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1%2%3%4%5%6") |
| 237 | .argcxx . . $ QString#arg(bc823072288cbbb5).(memStr, -6, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 238 | .argcxx . . $ QString#arg(bc823072288cbbb5).(codeStr, -7, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 239 | .argcxx . . $ QString#arg(bc823072288cbbb5).(symbolStr, -9, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 240 | .argcxx . . $ QString#arg(bc823072288cbbb5).(dotStr, -8, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 241 | .argcxx . . $ QString#arg(bc823072288cbbb5).(oprndStr, -12) |
| 242 | .argcxx . . $ QString#arg(bc823072288cbbb5).(commentcxx . . $ Code#comment.); |
| 243 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 244 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 245 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 246 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 0) || ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. >= Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.))) { |
| 247 | while (str.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 248 | codeStr =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 249 | while ((str.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) && (codeStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() < 6)) { |
| 250 | Asmcxx . . $ Asm#::unquotedStringToIntcxx . . $ Asm#unquotedStringToInt(ed22d69ba8f9ce68).(str, value); |
| 251 | codeStr.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(value, 2, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).()); |
| 252 | } |
| 253 | lineStr =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#QString(85c52e162fed56f9).(" %1").argcxx . . $ QString#arg(bc823072288cbbb5).(codeStr, -7, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')); |
| 254 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 255 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 256 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 257 | } |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | void DotBlockcxx . . $ DotBlock#::appendSourceLinecxx . . $ DotBlock#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 262 | { |
| 263 | QStringcxx . . $ QString# memStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(memAddresscxx . . $ Code#memAddress., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 264 | int numBytes = argumentcxx . . $ DotBlock#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).(); |
| 265 | QStringcxx . . $ QString# codeStr = ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 266 | while ((numBytes > 0) && (codeStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() < 6)) { |
| 267 | codeStr.appendcxx . . $ QString#append(d02845eef0c33901).("00"); |
| 268 | numBytes--; |
| 269 | } |
| 270 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. < Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.)) { |
| 271 | codeStr =cxx . . $ QString#`operator=`(d02845eef0c33901). " "; |
| 272 | } |
| 273 | QStringcxx . . $ QString# symbolStr = symbolDefcxx . . $ QString#QString(132dd6869045752b).; |
| 274 | if (symbolStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 275 | symbolStr.appendcxx . . $ QString#append(d02845eef0c33901).(":"); |
| 276 | } |
| 277 | QStringcxx . . $ QString# dotStr = ".BLOCK"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 278 | QStringcxx . . $ QString# oprndStr = argumentcxx . . $ DotBlock#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).(); |
| 279 | QStringcxx . . $ QString# lineStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1%2%3%4%5%6") |
| 280 | .argcxx . . $ QString#arg(bc823072288cbbb5).(memStr, -6, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 281 | .argcxx . . $ QString#arg(bc823072288cbbb5).(codeStr, -7, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 282 | .argcxx . . $ QString#arg(bc823072288cbbb5).(symbolStr, -9, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 283 | .argcxx . . $ QString#arg(bc823072288cbbb5).(dotStr, -8, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 284 | .argcxx . . $ QString#arg(bc823072288cbbb5).(oprndStr, -12) |
| 285 | .argcxx . . $ QString#arg(bc823072288cbbb5).(commentcxx . . $ Code#comment.); |
| 286 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 287 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 288 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 289 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 0) || ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. >= Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.))) { |
| 290 | while (numBytes > 0) { |
| 291 | codeStr =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 292 | while ((numBytes > 0) && (codeStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() < 6)) { |
| 293 | codeStr.appendcxx . . $ QString#append(d02845eef0c33901).("00"); |
| 294 | numBytes--; |
| 295 | } |
| 296 | lineStr =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#QString(85c52e162fed56f9).(" %1").argcxx . . $ QString#arg(bc823072288cbbb5).(codeStr, -7, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')); |
| 297 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 298 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 299 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 300 | } |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | void DotBurncxx . . $ DotBurn#::appendSourceLinecxx . . $ DotBurn#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 305 | { |
| 306 | QStringcxx . . $ QString# memStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(memAddresscxx . . $ Code#memAddress., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 307 | QStringcxx . . $ QString# symbolStr = symbolDefcxx . . $ QString#QString(132dd6869045752b).; |
| 308 | if (symbolStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 309 | symbolStr.appendcxx . . $ QString#append(d02845eef0c33901).(":"); |
| 310 | } |
| 311 | QStringcxx . . $ QString# dotStr = ".BURN"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 312 | QStringcxx . . $ QString# oprndStr = argumentcxx . . $ DotBurn#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).(); |
| 313 | QStringcxx . . $ QString# lineStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1 %2%3%4%5") |
| 314 | .argcxx . . $ QString#arg(bc823072288cbbb5).(memStr, -6, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 315 | .argcxx . . $ QString#arg(bc823072288cbbb5).(symbolStr, -9, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 316 | .argcxx . . $ QString#arg(bc823072288cbbb5).(dotStr, -8, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 317 | .argcxx . . $ QString#arg(bc823072288cbbb5).(oprndStr, -12) |
| 318 | .argcxx . . $ QString#arg(bc823072288cbbb5).(commentcxx . . $ Code#comment.); |
| 319 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 320 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 321 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 322 | } |
| 323 | |
| 324 | void DotBytecxx . . $ DotByte#::appendSourceLinecxx . . $ DotByte#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 325 | { |
| 326 | QStringcxx . . $ QString# memStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(memAddresscxx . . $ Code#memAddress., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 327 | QStringcxx . . $ QString# codeStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(argumentcxx . . $ DotByte#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).(), 2, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 328 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. < Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.)) { |
| 329 | codeStr =cxx . . $ QString#`operator=`(d02845eef0c33901). " "; |
| 330 | } |
| 331 | QStringcxx . . $ QString# symbolStr = symbolDefcxx . . $ QString#QString(132dd6869045752b).; |
| 332 | if (symbolStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 333 | symbolStr.appendcxx . . $ QString#append(d02845eef0c33901).(":"); |
| 334 | } |
| 335 | QStringcxx . . $ QString# dotStr = ".BYTE"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 336 | QStringcxx . . $ QString# oprndStr = argumentcxx . . $ DotByte#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).(); |
| 337 | if (oprndStr.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("0x"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 338 | oprndStr.removecxx . . $ QString#remove(6483560ce2afa901).(2, 2); // Display only the last two hex characters |
| 339 | } |
| 340 | QStringcxx . . $ QString# lineStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1%2%3%4%5%6") |
| 341 | .argcxx . . $ QString#arg(bc823072288cbbb5).(memStr, -6, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 342 | .argcxx . . $ QString#arg(bc823072288cbbb5).(codeStr, -7, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 343 | .argcxx . . $ QString#arg(bc823072288cbbb5).(symbolStr, -9, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 344 | .argcxx . . $ QString#arg(bc823072288cbbb5).(dotStr, -8, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 345 | .argcxx . . $ QString#arg(bc823072288cbbb5).(oprndStr, -12) |
| 346 | .argcxx . . $ QString#arg(bc823072288cbbb5).(commentcxx . . $ Code#comment.); |
| 347 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 348 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 349 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 350 | } |
| 351 | |
| 352 | void DotEndcxx . . $ DotEnd#::appendSourceLinecxx . . $ DotEnd#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 353 | { |
| 354 | QStringcxx . . $ QString# memStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(memAddresscxx . . $ Code#memAddress., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 355 | QStringcxx . . $ QString# symbolStr = symbolDefcxx . . $ QString#QString(132dd6869045752b).; |
| 356 | if (symbolStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 357 | symbolStr.appendcxx . . $ QString#append(d02845eef0c33901).(":"); |
| 358 | } |
| 359 | QStringcxx . . $ QString# dotStr = ".END"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 360 | QStringcxx . . $ QString# lineStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1 %2%3 %4") |
| 361 | .argcxx . . $ QString#arg(bc823072288cbbb5).(memStr, -6, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 362 | .argcxx . . $ QString#arg(bc823072288cbbb5).(symbolStr, -9, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 363 | .argcxx . . $ QString#arg(bc823072288cbbb5).(dotStr, -8, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 364 | .argcxx . . $ QString#arg(bc823072288cbbb5).(commentcxx . . $ Code#comment.); |
| 365 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 366 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 367 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 368 | } |
| 369 | |
| 370 | void DotEquatecxx . . $ DotEquate#::appendSourceLinecxx . . $ DotEquate#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 371 | { |
| 372 | QStringcxx . . $ QString# symbolStr = symbolDefcxx . . $ QString#QString(132dd6869045752b).; |
| 373 | if (symbolStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 374 | symbolStr.appendcxx . . $ QString#append(d02845eef0c33901).(":"); |
| 375 | } |
| 376 | QStringcxx . . $ QString# dotStr = ".EQUATE"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 377 | QStringcxx . . $ QString# oprndStr = argumentcxx . . $ DotEquate#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).(); |
| 378 | QStringcxx . . $ QString# lineStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).(" %1%2%3%4") |
| 379 | .argcxx . . $ QString#arg(bc823072288cbbb5).(symbolStr, -9, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 380 | .argcxx . . $ QString#arg(bc823072288cbbb5).(dotStr, -8, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 381 | .argcxx . . $ QString#arg(bc823072288cbbb5).(oprndStr, -12) |
| 382 | .argcxx . . $ QString#arg(bc823072288cbbb5).(commentcxx . . $ Code#comment.); |
| 383 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 384 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 385 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 386 | } |
| 387 | |
| 388 | void DotWordcxx . . $ DotWord#::appendSourceLinecxx . . $ DotWord#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 389 | { |
| 390 | QStringcxx . . $ QString# memStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(memAddresscxx . . $ Code#memAddress., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 391 | QStringcxx . . $ QString# codeStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(argumentcxx . . $ DotWord#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).(), 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 392 | if ((Pepcxx . . $ Pep#::burnCountcxx . . $ Pep#burnCount. == 1) && (memAddresscxx . . $ Code#memAddress. < Pepcxx . . $ Pep#::romStartAddresscxx . . $ Pep#romStartAddress.)) { |
| 393 | codeStr =cxx . . $ QString#`operator=`(d02845eef0c33901). " "; |
| 394 | } |
| 395 | QStringcxx . . $ QString# symbolStr = symbolDefcxx . . $ QString#QString(132dd6869045752b).; |
| 396 | if (symbolStr.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) { |
| 397 | symbolStr.appendcxx . . $ QString#append(d02845eef0c33901).(":"); |
| 398 | } |
| 399 | QStringcxx . . $ QString# dotStr = ".WORD"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 400 | QStringcxx . . $ QString# oprndStr = argumentcxx . . $ DotWord#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).(); |
| 401 | QStringcxx . . $ QString# lineStr = QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1%2%3%4%5%6") |
| 402 | .argcxx . . $ QString#arg(bc823072288cbbb5).(memStr, -6, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 403 | .argcxx . . $ QString#arg(bc823072288cbbb5).(codeStr, -7, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 404 | .argcxx . . $ QString#arg(bc823072288cbbb5).(symbolStr, -9, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 405 | .argcxx . . $ QString#arg(bc823072288cbbb5).(dotStr, -8, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).(' ')) |
| 406 | .argcxx . . $ QString#arg(bc823072288cbbb5).(oprndStr, -12) |
| 407 | .argcxx . . $ QString#arg(bc823072288cbbb5).(commentcxx . . $ Code#comment.); |
| 408 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 409 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(lineStr); |
| 410 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 411 | } |
| 412 | |
| 413 | void CommentOnlycxx . . $ CommentOnly#::appendSourceLinecxx . . $ CommentOnly#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 414 | { |
| 415 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(" " +cxx . . $ operator+(c75c3ae4eb9af1a8). commentcxx . . $ Code#comment.); |
| 416 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(" " +cxx . . $ operator+(c75c3ae4eb9af1a8). commentcxx . . $ Code#comment.); |
| 417 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 418 | } |
| 419 | |
| 420 | void BlankLinecxx . . $ BlankLine#::appendSourceLinecxx . . $ BlankLine#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) |
| 421 | { |
| 422 | assemblerListingList.appendcxx . . $ QList#append(77d9f17553126ecb).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 423 | listingTraceList.appendcxx . . $ QList#append(77d9f17553126ecb).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 424 | hasCheckBox.appendcxx . . $ QList#append(77d9f17553126ecb).(false); |
| 425 | } |
| 426 | |
| 427 | bool DotBlockcxx . . $ DotBlock#::processFormatTraceTagscxx . . $ DotBlock#processFormatTraceTags(4a42edfa3626ccba).(int &sourceLine, QStringcxx . . $ QString# &errorString) { |
| 428 | if (symbolDefcxx . . $ Code#symbolDef..sizecxx . . $ QString#size(455f465bc33b4cdf).() == 0) { |
| 429 | return true; |
| 430 | } |
| 431 | int pos = Asmcxx . . $ Asm#::rxFormatTagcxx . . $ Asm#rxFormatTag..indexIncxx . . $ QRegExp#indexIn(46f502bdfc4aeb33).(commentcxx . . $ Code#comment.); |
| 432 | if (pos > -1) { |
| 433 | QStringcxx . . $ QString# formatTag = Asmcxx . . $ Asm#::rxFormatTagcxx . . $ Asm#rxFormatTag..capcxx . . $ QRegExp#cap(ce915ed341d4a7f0).(0); |
| 434 | Enucxx . . $ Enu/::ESymbolFormatcxx . . $ Enu/ESymbolFormat# tagType = Asmcxx . . $ Asm#::formatTagTypecxx . . $ Asm#formatTagType(719bfaa963bc79d3).(formatTagcxx . . $ QString#QString(132dd6869045752b).); |
| 435 | int multiplier = Asmcxx . . $ Asm#::formatMultipliercxx . . $ Asm#formatMultiplier(87a9b7c6fe1ccdba).(formatTagcxx . . $ QString#QString(132dd6869045752b).); |
| 436 | if (argumentcxx . . $ DotBlock#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).() != Asmcxx . . $ Asm#::tagNumBytescxx . . $ Asm#tagNumBytes(10342dda07a560ad).(tagType) * multiplier) { |
| 437 | errorString =cxx . . $ QString#`operator=`(d02845eef0c33901). ";WARNING: Format tag does not match number of bytes allocated by .BLOCK."; |
| 438 | sourceLine = sourceCodeLinecxx . . $ Code#sourceCodeLine.; |
| 439 | return false; |
| 440 | } |
| 441 | Pepcxx . . $ Pep#::symbolFormatcxx . . $ Pep#symbolFormat..insertcxx . . $ QMap#insert(929a1ed410fe8423).(symbolDefcxx . . $ Code#symbolDef., tagType); |
| 442 | Pepcxx . . $ Pep#::symbolFormatMultipliercxx . . $ Pep#symbolFormatMultiplier..insertcxx . . $ QMap#insert(929a1ed410fe8423).(symbolDefcxx . . $ Code#symbolDef., multiplier); |
| 443 | Pepcxx . . $ Pep#::blockSymbolscxx . . $ Pep#blockSymbols..appendcxx . . $ QList#append(77d9f17553126ecb).(symbolDefcxx . . $ Code#symbolDef.); |
| 444 | } |
| 445 | return true; |
| 446 | } |
| 447 | |
| 448 | bool DotEquatecxx . . $ DotEquate#::processFormatTraceTagscxx . . $ DotEquate#processFormatTraceTags(4a42edfa3626ccba).(int &, QStringcxx . . $ QString# &) { |
| 449 | if (symbolDefcxx . . $ Code#symbolDef..sizecxx . . $ QString#size(455f465bc33b4cdf).() == 0) { |
| 450 | return true; |
| 451 | } |
| 452 | int pos = Asmcxx . . $ Asm#::rxFormatTagcxx . . $ Asm#rxFormatTag..indexIncxx . . $ QRegExp#indexIn(46f502bdfc4aeb33).(commentcxx . . $ Code#comment.); |
| 453 | if (pos > -1) { |
| 454 | QStringcxx . . $ QString# formatTag = Asmcxx . . $ Asm#::rxFormatTagcxx . . $ Asm#rxFormatTag..capcxx . . $ QRegExp#cap(ce915ed341d4a7f0).(0); |
| 455 | Pepcxx . . $ Pep#::symbolFormatcxx . . $ Pep#symbolFormat..insertcxx . . $ QMap#insert(929a1ed410fe8423).(symbolDefcxx . . $ Code#symbolDef., Asmcxx . . $ Asm#::formatTagTypecxx . . $ Asm#formatTagType(719bfaa963bc79d3).(formatTagcxx . . $ QString#QString(132dd6869045752b).)); |
| 456 | Pepcxx . . $ Pep#::symbolFormatMultipliercxx . . $ Pep#symbolFormatMultiplier..insertcxx . . $ QMap#insert(929a1ed410fe8423).(symbolDefcxx . . $ Code#symbolDef., Asmcxx . . $ Asm#::formatMultipliercxx . . $ Asm#formatMultiplier(87a9b7c6fe1ccdba).(formatTagcxx . . $ QString#QString(132dd6869045752b).)); |
| 457 | Pepcxx . . $ Pep#::equateSymbolscxx . . $ Pep#equateSymbols..appendcxx . . $ QList#append(77d9f17553126ecb).(symbolDefcxx . . $ Code#symbolDef.); |
| 458 | } |
| 459 | return true; |
| 460 | } |
| 461 | |
| 462 | bool DotBlockcxx . . $ DotBlock#::processSymbolTraceTagscxx . . $ DotBlock#processSymbolTraceTags(4a42edfa3626ccba).(int &sourceLine, QStringcxx . . $ QString# &errorString) { |
| 463 | // For global structs. |
| 464 | if (symbolDefcxx . . $ Code#symbolDef..sizecxx . . $ QString#size(455f465bc33b4cdf).() == 0) { |
| 465 | return true; |
| 466 | } |
| 467 | if (Pepcxx . . $ Pep#::blockSymbolscxx . . $ Pep#blockSymbols..containscxx . . $ QStringList#contains(8cce4688c16f48f3).(symbolDefcxx . . $ Code#symbolDef.)) { |
| 468 | return true; // Format tag takes precedence over symbol tags. |
| 469 | } |
| 470 | int numBytesAllocated = argumentcxx . . $ DotBlock#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).(); |
| 471 | QStringcxx . . $ QString# symbolcxx . . $ QString#QString(ced63f7c635d850d).; |
| 472 | QStringListcxx . . $ QStringList# listcxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 473 | int numBytesListed = 0; |
| 474 | int pos = 0; |
| 475 | while ((pos = Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..indexIncxx . . $ QRegExp#indexIn(46f502bdfc4aeb33).(commentcxx . . $ Code#comment., pos)) != -1) { |
| 476 | symbol =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..capcxx . . $ QRegExp#cap(ce915ed341d4a7f0).(1); |
| 477 | if (!Pepcxx . . $ Pep#::equateSymbolscxx . . $ Pep#equateSymbols..containscxx . . $ QStringList#contains(8cce4688c16f48f3).(symbol)) { |
| 478 | errorString =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ";WARNING: " +cxx . . $ operator+(c75c3ae4eb9af1a8). symbol +cxx . . $ operator+(3d22f08efddf8107). " not specified in .EQUATE."; |
| 479 | sourceLine = sourceCodeLinecxx . . $ Code#sourceCodeLine.; |
| 480 | return false; |
| 481 | } |
| 482 | numBytesListed += Asmcxx . . $ Asm#::tagNumBytescxx . . $ Asm#tagNumBytes(10342dda07a560ad).(Pepcxx . . $ Pep#::symbolFormatcxx . . $ Pep#symbolFormat..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(symbol)) * Pepcxx . . $ Pep#::symbolFormatMultipliercxx . . $ Pep#symbolFormatMultiplier..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(symbol); |
| 483 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(symbol); |
| 484 | pos += Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..matchedLengthcxx . . $ QRegExp#matchedLength(455f465bc33b4cdf).(); |
| 485 | } |
| 486 | if (numBytesAllocated != numBytesListed && numBytesListed > 0) { |
| 487 | errorString =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ";WARNING: Number of bytes allocated (" +cxx . . $ operator+(c75c3ae4eb9af1a8). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(numBytesAllocated) +cxx . . $ operator+(3d22f08efddf8107). |
| 488 | ") not equal to number of bytes listed in trace tag (" +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(numBytesListed) +cxx . . $ operator+(3d22f08efddf8107). ")."; |
| 489 | sourceLine = sourceCodeLinecxx . . $ Code#sourceCodeLine.; |
| 490 | return false; |
| 491 | } |
| 492 | Pepcxx . . $ Pep#::blockSymbolscxx . . $ Pep#blockSymbols..appendcxx . . $ QList#append(77d9f17553126ecb).(symbolDefcxx . . $ Code#symbolDef.); |
| 493 | Pepcxx . . $ Pep#::globalStructSymbolscxx . . $ Pep#globalStructSymbols..insertcxx . . $ QMap#insert(929a1ed410fe8423).(symbolDefcxx . . $ Code#symbolDef., list); |
| 494 | return true; |
| 495 | } |
| 496 | |
| 497 | bool UnaryInstructioncxx . . $ UnaryInstruction#::processSymbolTraceTagscxx . . $ UnaryInstruction#processSymbolTraceTags(4a42edfa3626ccba).(int &sourceLine, QStringcxx . . $ QString# &errorString) { |
| 498 | int numBytesDeallocated; |
| 499 | switch (mnemoniccxx . . $ UnaryInstruction#mnemonic.) { |
| 500 | case Enucxx . . $ Enu/::RET1cxx . . $ Enu/RET1.: |
| 501 | numBytesDeallocated = 1; |
| 502 | break; |
| 503 | case Enucxx . . $ Enu/::RET2cxx . . $ Enu/RET2.: |
| 504 | numBytesDeallocated = 2; |
| 505 | break; |
| 506 | case Enucxx . . $ Enu/::RET3cxx . . $ Enu/RET3.: |
| 507 | numBytesDeallocated = 3; |
| 508 | break; |
| 509 | case Enucxx . . $ Enu/::RET4cxx . . $ Enu/RET4.: |
| 510 | numBytesDeallocated = 4; |
| 511 | break; |
| 512 | case Enucxx . . $ Enu/::RET5cxx . . $ Enu/RET5.: |
| 513 | numBytesDeallocated = 5; |
| 514 | break; |
| 515 | case Enucxx . . $ Enu/::RET6cxx . . $ Enu/RET6.: |
| 516 | numBytesDeallocated = 6; |
| 517 | break; |
| 518 | case Enucxx . . $ Enu/::RET7cxx . . $ Enu/RET7.: |
| 519 | numBytesDeallocated = 7; |
| 520 | break; |
| 521 | default: |
| 522 | return true; |
| 523 | } |
| 524 | QStringcxx . . $ QString# symbolcxx . . $ QString#QString(ced63f7c635d850d).; |
| 525 | QStringListcxx . . $ QStringList# listcxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 526 | int numBytesListed = 0; |
| 527 | int pos = 0; |
| 528 | while ((pos = Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..indexIncxx . . $ QRegExp#indexIn(46f502bdfc4aeb33).(commentcxx . . $ Code#comment., pos)) != -1) { |
| 529 | symbol =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..capcxx . . $ QRegExp#cap(ce915ed341d4a7f0).(1); |
| 530 | if (!Pepcxx . . $ Pep#::equateSymbolscxx . . $ Pep#equateSymbols..containscxx . . $ QStringList#contains(8cce4688c16f48f3).(symbol)) { |
| 531 | errorString =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ";WARNING: " +cxx . . $ operator+(c75c3ae4eb9af1a8). symbol +cxx . . $ operator+(3d22f08efddf8107). " not specified in .EQUATE."; |
| 532 | sourceLine = sourceCodeLinecxx . . $ Code#sourceCodeLine.; |
| 533 | return false; |
| 534 | } |
| 535 | numBytesListed += Asmcxx . . $ Asm#::tagNumBytescxx . . $ Asm#tagNumBytes(10342dda07a560ad).(Pepcxx . . $ Pep#::symbolFormatcxx . . $ Pep#symbolFormat..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(symbol)) * Pepcxx . . $ Pep#::symbolFormatMultipliercxx . . $ Pep#symbolFormatMultiplier..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(symbol); |
| 536 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(symbol); |
| 537 | pos += Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..matchedLengthcxx . . $ QRegExp#matchedLength(455f465bc33b4cdf).(); |
| 538 | } |
| 539 | if (numBytesDeallocated != numBytesListed) { |
| 540 | errorString =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ";WARNING: Number of bytes deallocated (" +cxx . . $ operator+(c75c3ae4eb9af1a8). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(numBytesDeallocated) +cxx . . $ operator+(3d22f08efddf8107). |
| 541 | ") not equal to number of bytes listed in trace tag (" +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(numBytesListed) +cxx . . $ operator+(3d22f08efddf8107). ")."; |
| 542 | sourceLine = sourceCodeLinecxx . . $ Code#sourceCodeLine.; |
| 543 | return false; |
| 544 | } |
| 545 | Pepcxx . . $ Pep#::symbolTraceListcxx . . $ Pep#symbolTraceList..insertcxx . . $ QMap#insert(929a1ed410fe8423).(memAddresscxx . . $ Code#memAddress., list); |
| 546 | return true; |
| 547 | } |
| 548 | |
| 549 | bool NonUnaryInstructioncxx . . $ NonUnaryInstruction#::processSymbolTraceTagscxx . . $ NonUnaryInstruction#processSymbolTraceTags(4a42edfa3626ccba).(int &sourceLine, QStringcxx . . $ QString# &errorString) { |
| 550 | if (mnemoniccxx . . $ NonUnaryInstruction#mnemonic. == Enucxx . . $ Enu/::ADDSPcxx . . $ Enu/ADDSP. || mnemoniccxx . . $ NonUnaryInstruction#mnemonic. == Enucxx . . $ Enu/::SUBSPcxx . . $ Enu/SUBSP.) { |
| 551 | int numBytesAllocated; |
| 552 | if (addressingModecxx . . $ NonUnaryInstruction#addressingMode. != Enucxx . . $ Enu/::Icxx . . $ Enu/I.) { |
| 553 | errorString =cxx . . $ QString#`operator=`(d02845eef0c33901). ";WARNING: Stack trace not possible unless immediate addressing is specified."; |
| 554 | sourceLine = sourceCodeLinecxx . . $ Code#sourceCodeLine.; |
| 555 | return false; |
| 556 | } |
| 557 | numBytesAllocated = argumentcxx . . $ NonUnaryInstruction#argument.->getArgumentValuecxx . . $ Argument#getArgumentValue(b126dc7c1de90089).(); |
| 558 | QStringcxx . . $ QString# symbolcxx . . $ QString#QString(ced63f7c635d850d).; |
| 559 | QStringListcxx . . $ QStringList# listcxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 560 | int numBytesListed = 0; |
| 561 | int pos = 0; |
| 562 | while ((pos = Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..indexIncxx . . $ QRegExp#indexIn(46f502bdfc4aeb33).(commentcxx . . $ Code#comment., pos)) != -1) { |
| 563 | symbol =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..capcxx . . $ QRegExp#cap(ce915ed341d4a7f0).(1); |
| 564 | if (!Pepcxx . . $ Pep#::equateSymbolscxx . . $ Pep#equateSymbols..containscxx . . $ QStringList#contains(8cce4688c16f48f3).(symbol)) { |
| 565 | errorString =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ";WARNING: " +cxx . . $ operator+(c75c3ae4eb9af1a8). symbol +cxx . . $ operator+(3d22f08efddf8107). " not specified in .EQUATE."; |
| 566 | sourceLine = sourceCodeLinecxx . . $ Code#sourceCodeLine.; |
| 567 | return false; |
| 568 | } |
| 569 | numBytesListed += Asmcxx . . $ Asm#::tagNumBytescxx . . $ Asm#tagNumBytes(10342dda07a560ad).(Pepcxx . . $ Pep#::symbolFormatcxx . . $ Pep#symbolFormat..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(symbol)) * Pepcxx . . $ Pep#::symbolFormatMultipliercxx . . $ Pep#symbolFormatMultiplier..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(symbol); |
| 570 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(symbol); |
| 571 | pos += Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..matchedLengthcxx . . $ QRegExp#matchedLength(455f465bc33b4cdf).(); |
| 572 | } |
| 573 | if (numBytesAllocated != numBytesListed) { |
| 574 | QStringcxx . . $ QString# message = (cxx . . $ QString#QString(85c52e162fed56f9).mnemoniccxx . . $ NonUnaryInstruction#mnemonic. == Enucxx . . $ Enu/::ADDSPcxx . . $ Enu/ADDSP.) ? "deallocated" : "allocated"; |
| 575 | errorString =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ";WARNING: Number of bytes " +cxx . . $ operator+(c75c3ae4eb9af1a8). message +cxx . . $ operator+(3d22f08efddf8107). " (" +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(numBytesAllocated) +cxx . . $ operator+(3d22f08efddf8107). |
| 576 | ") not equal to number of bytes listed in trace tag (" +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(numBytesListed) +cxx . . $ operator+(3d22f08efddf8107). ")."; |
| 577 | sourceLine = sourceCodeLinecxx . . $ Code#sourceCodeLine.; |
| 578 | return false; |
| 579 | } |
| 580 | Pepcxx . . $ Pep#::symbolTraceListcxx . . $ Pep#symbolTraceList..insertcxx . . $ QMap#insert(929a1ed410fe8423).(memAddresscxx . . $ Code#memAddress., list); |
| 581 | return true; |
| 582 | } |
| 583 | else if (mnemoniccxx . . $ NonUnaryInstruction#mnemonic. == Enucxx . . $ Enu/::CALLcxx . . $ Enu/CALL. && argumentcxx . . $ NonUnaryInstruction#argument.->getArgumentStringcxx . . $ Argument#getArgumentString(4365c3963150523e).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "new") { |
| 584 | int pos = 0; |
| 585 | QStringcxx . . $ QString# symbolcxx . . $ QString#QString(ced63f7c635d850d).; |
| 586 | QStringListcxx . . $ QStringList# listcxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 587 | while ((pos = Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..indexIncxx . . $ QRegExp#indexIn(46f502bdfc4aeb33).(commentcxx . . $ Code#comment., pos)) != -1) { |
| 588 | symbol =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..capcxx . . $ QRegExp#cap(ce915ed341d4a7f0).(1); |
| 589 | if (!Pepcxx . . $ Pep#::equateSymbolscxx . . $ Pep#equateSymbols..containscxx . . $ QStringList#contains(8cce4688c16f48f3).(symbol) && !Pepcxx . . $ Pep#::blockSymbolscxx . . $ Pep#blockSymbols..containscxx . . $ QStringList#contains(8cce4688c16f48f3).(symbol)) { |
| 590 | errorString =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ";WARNING: " +cxx . . $ operator+(c75c3ae4eb9af1a8). symbol +cxx . . $ operator+(3d22f08efddf8107). " not specified in .EQUATE."; |
| 591 | sourceLine = sourceCodeLinecxx . . $ Code#sourceCodeLine.; |
| 592 | return false; |
| 593 | } |
| 594 | list.appendcxx . . $ QList#append(77d9f17553126ecb).(symbol); |
| 595 | Pepcxx . . $ Pep#::symbolTraceListcxx . . $ Pep#symbolTraceList..insertcxx . . $ QMap#insert(929a1ed410fe8423).(memAddresscxx . . $ Code#memAddress., list); |
| 596 | pos += Asmcxx . . $ Asm#::rxSymbolTagcxx . . $ Asm#rxSymbolTag..matchedLengthcxx . . $ QRegExp#matchedLength(455f465bc33b4cdf).(); |
| 597 | } |
| 598 | return true; |
| 599 | } |
| 600 | else { |
| 601 | return true; |
| 602 | } |
| 603 | } |