b43-asm: Pass external conditions as immediates
[b43-tools.git] / assembler / main.c
index e90bac8118383f458426be1a8a9ed096220b97e4..a2ace1df993217396e295579569780521cb52a3c 100644 (file)
@@ -469,7 +469,7 @@ static unsigned int merge_external_jmp_into_opcode(struct assembler_context *ctx
 
        ol = insn->operands;
        opcode = opbase;
-       cond = ol->oper[0]->u.raw;
+       cond = ol->oper[0]->u.imm->imm;
        if (cond & ~0xFF)
                asm_error(ctx, "External jump condition value too big (> 0xFF)");
        opcode |= cond;