rbdasm/dasm.c
//
// Returns the register used by the operand, if any, as one of the
// Dasm::Register constants.
//
Returns the register used by the operand, if any, as one of the
Dasm::Register constants.
Returns the register used by the operand if any as one of the Dasm :: Register constants .
static VALUE operand_reg(VALUE self)
{
	POPERAND_OBJECT oper;
	VALUE    rv;
	rb_operand_cast(self, oper);
	if (get_operand_register(oper->op) == REGISTER_NOP)
		rv = Qnil;
	else
		rv = INT2FIX(get_operand_register(oper->op));
	return rv;
}
static VALUE operand_reg ( VALUE self ) { POPERAND_OBJECT oper ; VALUE rv ; rb_operand_cast ( self , oper ) ; if ( get_operand_register ( oper -> op ) == REGISTER_NOP ) rv = Qnil ; else rv = INT2FIX ( get_operand_register ( oper -> op ) ) ; return rv ; }
Returns the register used by the operand, if any, as one of the
Dasm::Register constants.
Returns the register used by the operand if any as one of the Dasm :: Register constants .