rbdasm/dasm.c
//
// Converts the instruction to a printable disassembled string using the format
// that the Dasm instance the instruction came from is using.
//
Converts the instruction to a printable disassembled string using the format
that the Dasm instance the instruction came from is using.
Converts the instruction to a printable disassembled string using the format that the Dasm instance the instruction came from is using .
static VALUE instruction_to_s(VALUE self)
{
	PINSTRUCTION_OBJECT inst;
	PDASM_OBJECT        dasm;
	char                buf[32] = { 0 };
	rb_instruction_cast(self, inst);
	rb_dasm_cast(inst->dasm, dasm);
	get_instruction_string(&inst->inst, dasm->format, 0, (BYTE *)buf, sizeof(buf) - 1);
	return rb_str_new2(buf);
}
static VALUE instruction_to_s ( VALUE self ) { PINSTRUCTION_OBJECT inst ; PDASM_OBJECT dasm ; char buf [ 32 ] = { 0 } ; rb_instruction_cast ( self , inst ) ; rb_dasm_cast ( inst -> dasm , dasm ) ; get_instruction_string ( & inst -> inst , dasm -> format , 0 , ( BYTE * ) buf , sizeof ( buf ) - 1 ) ; return rb_str_new2 ( buf ) ; }
Converts the instruction to a printable disassembled string using the format
that the Dasm instance the instruction came from is using.
Converts the instruction to a printable disassembled string using the format that the Dasm instance the instruction came from is using .