Add var to helper function signature

This commit is contained in:
jacquej96 2019-11-08 11:49:36 -05:00 committed by GitHub
parent 080266ac4a
commit b3f21d6437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,7 +201,7 @@ function isRegisterOp(text) {
return new RegExp('^(a|b|c|d|x|y|bp|sp)$').test(text.toLowerCase());
}
function getOffsetOperandType(text) {
function getOffsetOperandType(text, result) {
var offset;
if (isRegisterOp(text.substring(0, 2))) {
@ -247,7 +247,7 @@ function getOperandType(text, result) {
return OPERAND_MEM_IMM;
}
return getOffsetOperandType(text);
return getOffsetOperandType(text, result);
}
return OPERAND_INVALID;