Previous 199869 Revisions Next

r22508 Tuesday 23rd April, 2013 at 02:37:07 UTC by Carl
(mess) psxcd: fix potential bugs (nw)
[src/mess/machine]psxcd.c

trunk/src/mess/machine/psxcd.c
r22507r22508
321321         if(data & 0x1f)
322322         {
323323            m_regs.ir &= ~(data & 0x1f);
324            if(m_regs.ir)
325               break;
326324
327            if (res_queue)
325            if(res_queue && !m_regs.ir)
328326            {
329327               command_result *res = res_queue;
330328               res_queue = res->next;
r22507r22508
861859   memcpy(mainram, &m_transbuf[m_transcurr], size);
862860   m_transcurr += size;
863861   if(raw_sector_size <= m_transcurr)
862   {
863      m_dmaload = false;
864864      m_regs.sr &= ~0x40;
865   }
865866}
866867
867868void psxcd_device::read_sector()

Previous 199869 Revisions Next


© 1997-2024 The MAME Team