fix CJUMP using wrong instruction

This commit is contained in:
fsan 2021-11-01 19:18:05 -03:00
parent c2b02f0f1e
commit 0edfae551d
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ translator::translate_exp(struct token *exp, scope *scope){
case token::EXP_COMPARE:
size += translate_exp(exp->rvalue, scope);
size += translate_exp(exp->lvalue, scope);
std::cout << "AND R0, R1\n";
std::cout << "CMP R0, R1\n";
size++;
break;
default: exit(-1);