From 6a2494fdffcb534ee74743e2857207543fa51563 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 3 Jul 2019 15:27:01 +0200 Subject: Allow underscore in labels. Signed-off-by: Pavel Pisa --- qtmips_machine/instruction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_machine/instruction.cpp') diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp index 3713cdb..cfa0f1a 100644 --- a/qtmips_machine/instruction.cpp +++ b/qtmips_machine/instruction.cpp @@ -1114,7 +1114,7 @@ static void reloc_append(RelocExpressionList *reloc, QString fl, uint32_t inst_a QChar ch = fl.at(i); if (ch.isSpace()) continue; - if (ch.isLetterOrNumber()) + if (ch.isLetterOrNumber() || (ch == '_')) expression.append(ch); else if (allowed_operators.indexOf(ch) >= 0) expression.append(ch); -- cgit v1.2.3