void i51_data(ea_t ea) { gl_name = 1; // the kernel's standard routine which outputs the data knows nothing // about "equ" directives. So we do the following: // - try to output an "equ" directive // - if we succeed, then ok // - otherwise let the standard data output routine, intel_data() // do all the job if ( !out_equ(ea) ) intel_data(ea); }
//-------------------------------------------------------------------------- void idaapi z8_data(ea_t ea) { segment_t *s = getseg(ea); if ( s != NULL && s->type == SEG_IMEM ) { char nbuf[MAXSTR]; char *name = get_name(BADADDR, ea, nbuf, sizeof(nbuf)); if ( name != NULL ) out_equ(name, ash.a_equ, uint16(ea - get_segm_base(s))); } else intel_data(ea); }