static int rollerg_sound_r(int offset) { /* If the sound CPU is running, read the status, otherwise just make it pass the test */ if (Machine->sample_rate != 0) return K053260_ReadReg(2 + offset); else return 0x00; }
int simpsons_sound_r(int offset) { /* If the sound CPU is running, read the status, otherwise just make it pass the test */ if (Machine->sample_rate != 0) return K053260_ReadReg(2 + offset); else { static int res = 0x80; res = (res & 0xfc) | ((res + 1) & 0x03); return offset ? res : 0x00; } }