diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-07-02 21:10:41 +0200 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-07-02 21:11:56 +0200 |
commit | 8cfa2c11ad3354e74d5ba9b50eb6cea222a85463 (patch) | |
tree | a6fe32c808bc7909188fbb4c0eaba39bb1ad53ae /qtmips_machine | |
parent | 2aa33db8be7397d39080e6ec96a9158e0c1e63e5 (diff) | |
download | qtmips-8cfa2c11ad3354e74d5ba9b50eb6cea222a85463.tar.gz qtmips-8cfa2c11ad3354e74d5ba9b50eb6cea222a85463.tar.bz2 qtmips-8cfa2c11ad3354e74d5ba9b50eb6cea222a85463.zip |
Add binary complement operation to the parser.
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 6792aa6..f62605b 100644 --- a/qtmips_machine/instruction.cpp +++ b/qtmips_machine/instruction.cpp @@ -1045,7 +1045,7 @@ static void reloc_append(RelocExpressionList *reloc, QString fl, uint32_t inst_a uint bits = IMF_SUB_GET_BITS(adesc->loc); uint shift = IMF_SUB_GET_SHIFT(adesc->loc); QString expression = ""; - QString allowed_operators = "+-/*|&"; + QString allowed_operators = "+-/*|&^~"; int i = 0; for (; i < fl.size(); i++) { QChar ch = fl.at(i); |