mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
Add var to helper function signature
This commit is contained in:
parent
080266ac4a
commit
b3f21d6437
@ -201,7 +201,7 @@ function isRegisterOp(text) {
|
|||||||
return new RegExp('^(a|b|c|d|x|y|bp|sp)$').test(text.toLowerCase());
|
return new RegExp('^(a|b|c|d|x|y|bp|sp)$').test(text.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
function getOffsetOperandType(text) {
|
function getOffsetOperandType(text, result) {
|
||||||
|
|
||||||
var offset;
|
var offset;
|
||||||
if (isRegisterOp(text.substring(0, 2))) {
|
if (isRegisterOp(text.substring(0, 2))) {
|
||||||
@ -247,7 +247,7 @@ function getOperandType(text, result) {
|
|||||||
return OPERAND_MEM_IMM;
|
return OPERAND_MEM_IMM;
|
||||||
}
|
}
|
||||||
|
|
||||||
return getOffsetOperandType(text);
|
return getOffsetOperandType(text, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
return OPERAND_INVALID;
|
return OPERAND_INVALID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user