diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-07-03 15:27:01 +0200 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-07-03 15:27:01 +0200 |
commit | 6a2494fdffcb534ee74743e2857207543fa51563 (patch) | |
tree | 1f0d9251055d61846c729ab7939fb95403671444 /qtmips_machine | |
parent | 65f530cd6b38c9d1971314bb14705137623a8f9d (diff) | |
download | qtmips-6a2494fdffcb534ee74743e2857207543fa51563.tar.gz qtmips-6a2494fdffcb534ee74743e2857207543fa51563.tar.bz2 qtmips-6a2494fdffcb534ee74743e2857207543fa51563.zip |
Allow underscore in labels.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine')
-rw-r--r-- | qtmips_machine/instruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |