4
state.t_pmon = REG(pmon) & ~1; //voice 0 doesn't support PMON
8
state.t_non = REG(non);
9
state.t_eon = REG(eon);
10
state.t_dir = REG(dir);
14
state.every_other_sample ^= 1;
15
if(state.every_other_sample) {
16
state.new_kon &= ~state.kon; //clears KON 63 clocks after it was last read
21
if(state.every_other_sample) {
22
state.kon = state.new_kon;
23
state.t_koff = REG(koff);
29
if(counter_poll(REG(flg) & 0x1f) == true) {
30
int feedback = (state.noise << 13) ^ (state.noise << 14);
31
state.noise = (feedback & 0x4000) ^ (state.noise >> 1);