aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-03 09:31:32 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-03 09:31:32 +0200
commitbfc4ab63d2b3cf32459a11a12489a73d2addca9d (patch)
treeba502100d2c09080bda86394b704ddb699ce055d /qtmips_gui
parent596253da0d2be600c0867f207f41f65be66b58d0 (diff)
downloadqtmips-bfc4ab63d2b3cf32459a11a12489a73d2addca9d.tar.gz
qtmips-bfc4ab63d2b3cf32459a11a12489a73d2addca9d.tar.bz2
qtmips-bfc4ab63d2b3cf32459a11a12489a73d2addca9d.zip
Ignore code and data assembler directives.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui')
-rw-r--r--qtmips_gui/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qtmips_gui/mainwindow.cpp b/qtmips_gui/mainwindow.cpp
index 766a28c..685a84a 100644
--- a/qtmips_gui/mainwindow.cpp
+++ b/qtmips_gui/mainwindow.cpp
@@ -640,6 +640,9 @@ void MainWindow::compile_source() {
if (line.isEmpty())
continue;
QString op = line.split(" ").at(0).toUpper();
+ if ((op == ".DATA") || (op == ".CODE")) {
+ continue;
+ }
if (op == ".ORG") {
bool ok;
fixmatheval::FmeExpression expression;