static READ_HANDLER( omegrace_vg_status_r ) { if (avgdvg_done()) return 0; else return 0x80; }
static READ_HANDLER( tempest_IN0_r ) { int res = readinputport(0); if (avgdvg_done()) res |= 0x40; /* Emulate the 3kHz source on bit 7 (divide 1.5MHz by 512) */ if (activecpu_gettotalcycles() & 0x100) res |= 0x80; return res; }
static READ8_HANDLER( omegrace_vg_status_r ) { return avgdvg_done() ? 0x00 : 0x80; }
static READ16_HANDLER( switches_r ) { return (readinputport(0) | (avgdvg_done() ? 1 : 0)); }