From bfc4ab63d2b3cf32459a11a12489a73d2addca9d Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 3 Jul 2019 09:31:32 +0200 Subject: Ignore code and data assembler directives. Signed-off-by: Pavel Pisa --- qtmips_gui/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qtmips_gui') 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; -- cgit v1.2.3