in the parser.
svn path=/trunk/yasm/; revision=685
JR_NEAR_FORCED
} x86_jmprel_opcode_sel;
-typedef struct x86_targetval {
- expr *val;
-
- x86_jmprel_opcode_sel op_sel;
-} x86_targetval;
-
void x86_ea_set_segment(/*@null@*/ effaddr *ea, unsigned char segment);
effaddr *x86_ea_new_reg(unsigned char reg);
effaddr *x86_ea_new_imm(/*@keep@*/expr *imm, unsigned char im_len);
* Pass 0 for the opcode_len if that version of the opcode doesn't exist.
*/
typedef struct x86_new_jmprel_data {
- /*@keep@*/ x86_targetval *target;
+ /*@keep@*/ expr *target;
+ x86_jmprel_opcode_sel op_sel;
unsigned char short_op_len;
unsigned char short_op[3];
unsigned char near_op_len;
bc = bc_new_common((bytecode_type)X86_BC_JMPREL, sizeof(x86_jmprel));
jmprel = bc_get_data(bc);
- jmprel->target = d->target->val;
- jmprel->op_sel = d->target->op_sel;
+ jmprel->target = d->target;
+ jmprel->op_sel = d->op_sel;
- if ((d->target->op_sel == JR_SHORT_FORCED) && (d->near_op_len == 0))
+ if ((d->op_sel == JR_SHORT_FORCED) && (d->near_op_len == 0))
Error(_("no SHORT form of that jump instruction exists"));
- if ((d->target->op_sel == JR_NEAR_FORCED) && (d->short_op_len == 0))
+ if ((d->op_sel == JR_NEAR_FORCED) && (d->short_op_len == 0))
Error(_("no NEAR form of that jump instruction exists"));
jmprel->shortop.opcode[0] = d->short_op[0];
JR_NEAR_FORCED
} x86_jmprel_opcode_sel;
-typedef struct x86_targetval {
- expr *val;
-
- x86_jmprel_opcode_sel op_sel;
-} x86_targetval;
-
void x86_ea_set_segment(/*@null@*/ effaddr *ea, unsigned char segment);
effaddr *x86_ea_new_reg(unsigned char reg);
effaddr *x86_ea_new_imm(/*@keep@*/expr *imm, unsigned char im_len);
* Pass 0 for the opcode_len if that version of the opcode doesn't exist.
*/
typedef struct x86_new_jmprel_data {
- /*@keep@*/ x86_targetval *target;
+ /*@keep@*/ expr *target;
+ x86_jmprel_opcode_sel op_sel;
unsigned char short_op_len;
unsigned char short_op[3];
unsigned char near_op_len;
bc = bc_new_common((bytecode_type)X86_BC_JMPREL, sizeof(x86_jmprel));
jmprel = bc_get_data(bc);
- jmprel->target = d->target->val;
- jmprel->op_sel = d->target->op_sel;
+ jmprel->target = d->target;
+ jmprel->op_sel = d->op_sel;
- if ((d->target->op_sel == JR_SHORT_FORCED) && (d->near_op_len == 0))
+ if ((d->op_sel == JR_SHORT_FORCED) && (d->near_op_len == 0))
Error(_("no SHORT form of that jump instruction exists"));
- if ((d->target->op_sel == JR_NEAR_FORCED) && (d->short_op_len == 0))
+ if ((d->op_sel == JR_NEAR_FORCED) && (d->short_op_len == 0))
Error(_("no NEAR form of that jump instruction exists"));
jmprel->shortop.opcode[0] = d->short_op[0];