//
//      This file is automatically executed when IDA is started.
//      You can define your own IDC functions and assign hotkeys to them.
//
//      You may add your frequently used functions here and they will
//      be always available.
//
//
#include <idc.idc>

static main(void) {

//
//      This function is executed when IDA is started.
//
//      Add statements to fine-tune your IDA here.
//

}

//-----------------------------------------------------------------------
// Get name of the current processor

#ifdef _not_defined_symbol_ // we don't use this function now...
static get_processor(void) {
  auto i,procname,chr;

  procname = "";
  for ( i=0; i < 8; i++ ) {
    chr = GetCharPrm(INF_PROCNAME+i);
    if ( chr == 0 ) break;
    procname = procname + chr;
  }
  return procname;
}
#endif // 0

//-----------------------------------------------------------------------
// Get signed extended 16-bit value
static SWord(ea)
{
  auto v;
  v=Word(ea);
  if ( v & 0x8000 ) v = v | 0xFFFF0000;
  return v;
}
