From 666f9ac893afb296d3a5bee7bf10c80744ba2c9d Mon Sep 17 00:00:00 2001 From: Soraxas Date: Fri, 21 Jan 2022 11:54:49 +1100 Subject: [PATCH] Fixup "Add inequality checks for register" --- right/src/macros.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/right/src/macros.c b/right/src/macros.c index 93d76a2d4..e786ae843 100644 --- a/right/src/macros.c +++ b/right/src/macros.c @@ -1322,13 +1322,13 @@ static bool processIfRegEqCommand(bool negate, const char* arg1, const char *arg static bool processIfRegInequalityCommand(bool greaterThan, const char* arg1, const char *argEnd) { - int32_t *address = getReg(arg1, argEnd, NULL); + uint8_t address = parseNUM(arg1, argEnd); uint8_t param = parseNUM(NextTok(arg1, argEnd), argEnd); - if (address) { + if (validReg(address)) { if (greaterThan) { - return (*address) > param; + return regs[address] > param; } else { - return (*address) < param; + return regs[address] < param; } } else { return false;