rbdasm/dasm.c
//
// Returns the addressing mode used when disassembling this instruction.
//
Returns the addressing mode used when disassembling this instruction.
Returns the addressing mode used when disassembling this instruction .
static VALUE instruction_mode(VALUE self)
{
	PINSTRUCTION_OBJECT inst;
	VALUE               rv;	
	rb_instruction_cast(self, inst);
	switch (inst->inst.mode)
	{
		case MODE_32: rv = INT2FIX(32); break;
		case MODE_16: rv = INT2FIX(16); break;
		default: rv = Qnil; break;
	}
	return rv;
}
static VALUE instruction_mode ( VALUE self ) { PINSTRUCTION_OBJECT inst ; VALUE rv ; rb_instruction_cast ( self , inst ) ; switch ( inst -> inst . mode ) { case MODE_32 : rv = INT2FIX ( 32 ) ; break ; case MODE_16 : rv = INT2FIX ( 16 ) ; break ; default : rv = Qnil ; break ; } return rv ; }
Returns the addressing mode used when disassembling this instruction.
Returns the addressing mode used when disassembling this instruction .