diff --git a/mar/editor.js b/mar/editor.js
index 8bccf95..94f1b31 100644
--- a/mar/editor.js
+++ b/mar/editor.js
@@ -230,6 +230,11 @@ function getOperandType(text, result) {
return OPERAND_MEM_REG;
}
}
+
+ //Remove either ONE '+' or ONE '-' else the operand is invalid
+ //Credit: https://github.com/KevinRamharak
+ expr = expr.replace(/[+-]/, '');
+
//Check for number
if (!isNaN(Number(expr)) && Number(expr) === Math.floor(Number(expr))) {
return OPERAND_MEM_REG;
diff --git a/mar/editor.min.js b/mar/editor.min.js
index 31a52ba..e293640 100644
--- a/mar/editor.min.js
+++ b/mar/editor.min.js
@@ -9,7 +9,7 @@ function checkForORGInstruction(a,c,b){a=removeComment(a);a=removeLabel(a);a=get
function parseDWInstruction(a,c,b){a=a.trim();if("dw"===a.substr(0,2).toLowerCase()){a=a.substr(2,a.length).split(/,(?=(?:[^"]*"[^"]*")*[^"]*$)/,-1);for(var d=0;d