mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-08 16:38:05 -04:00
more idle detection, minor stuff
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@524 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
4aed476f24
commit
b06778874d
5 changed files with 31 additions and 25 deletions
|
@ -21,9 +21,9 @@ PICO_INTERNAL void PicoReratePico(void)
|
|||
PicoPicoPCMRerate(rate);
|
||||
}
|
||||
|
||||
static void PicoLinePico(int count)
|
||||
static void PicoLinePico(void)
|
||||
{
|
||||
PicoPicohw.line_counter += count;
|
||||
PicoPicohw.line_counter++;
|
||||
|
||||
#if 1
|
||||
if ((PicoPicohw.r12 & 0x4003) && PicoPicohw.line_counter - prev_line_cnt_irq3 > 200) {
|
||||
|
@ -37,7 +37,7 @@ static void PicoLinePico(int count)
|
|||
|
||||
if (PicoPicohw.fifo_bytes > 0)
|
||||
{
|
||||
PicoPicohw.fifo_line_bytes += fifo_bytes_line * count;
|
||||
PicoPicohw.fifo_line_bytes += fifo_bytes_line;
|
||||
if (PicoPicohw.fifo_line_bytes >= (1<<16)) {
|
||||
PicoPicohw.fifo_bytes -= PicoPicohw.fifo_line_bytes >> 16;
|
||||
PicoPicohw.fifo_line_bytes &= 0xffff;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue