Fix assembler bug related to comments
MODIFY
src/assembler.cpp
src/assembler.cpp
@@ -638,6 +638,18 @@ const QByteArray& Assembler::assembleBinaryFile(const QTextDocument& doc) {
// Split input into fields
fields = block.text().split(splitter);
fields.removeAll("");
+
+ // Remove comments from syntax evaluation
+ const static auto commentRegEx = QRegularExpression("[#](.*)");
+ int commentIndex = fields.indexOf(commentRegEx);
+ if (commentIndex != -1) {
+ int index = fields.length();
+ while (index >= commentIndex) {
+ fields.removeAt(index);
+ index--;
+ }
+ }
+
/* UnpackOp will:
* -unpack & convert pseudo operations into its required number of operations
* - Record label positioning

MODIFY
src/processortab.ui
src/processortab.ui
</sizepolicy>
</property>
<property name="title">
- <string>Simulator settings</string>
+ <string>Simulator control</string>
</property>
<layout class="QGridLayout" name="gridLayout_7">
<item row="0" column="0">

Fix assembler bug related to comments