added OPTP_IDX to distinguish address operands from OPTP_INT integer operands in an executable

This commit is contained in:
cozis
2022-08-15 14:18:57 +02:00
parent 8cac46440b
commit cb5e41b814
5 changed files with 48 additions and 38 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ static void emitInstr_JUMPIFANDPOP(CodegenContext *ctx,
int off, int len)
{
Operand opv[1] = {
{ .type = OPTP_INT, .as_int = op0 }
{ .type = OPTP_IDX, .as_int = op0 }
};
CodegenContext_EmitInstr(ctx, OPCODE_JUMPIFANDPOP, opv, 1, off, len);
}