Skip to content

Commit

Permalink
timer clear too
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Feb 8, 2016
1 parent 4f2d65b commit 9212136
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions hw/ultrasnd/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,11 @@ static void do_play_voice() {

vga_moveto(box.x+2,box.y+5);
vga_write_color(0x1F);
vga_write("6=8/16-bit ");
vga_write("6=8/16 ");
vga_write_color((gus_ignore_irq & 0x60) ? 0x1E : 0x1F);
vga_write("I=ignorevoiceIRQ ");
vga_write("I=ignVocIRQ ");
vga_write_color(0x1F);
vga_write("S=read2X6 V=clearVoiceIRQ D=clrDMAIRQ c/C=FCadj");
vga_write("S=read2X6 V=clrVocIRQ D=clrDMAIRQ T=clrTimerIRQ c/C=FCadj");

vga_moveto(box.x+2,box.y+6);
vga_write_color(0x1F);
Expand Down Expand Up @@ -745,6 +745,12 @@ static void do_play_voice() {
ultrasnd_select_read(gus,0x41); // to clear stuck DMA IRQs
_sti();
}
else if (c == 'T') {
_cli();
ultrasnd_select_write(gus,0x45,0x00);
ultrasnd_select_write(gus,0x45,gus_timer_ctl); /* enable timer 1 IRQ */
_sti();
}
}
}

Expand Down

0 comments on commit 9212136

Please sign in to comment.