The STATUS_REGISTER should return the actual status HI (Overflow) and LO (underflow) watermark because this register can be polled by the game.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6508 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Marcos Vitali 2010-12-03 04:58:28 +00:00
parent 9f6dd239b6
commit ad8248cedd
1 changed files with 3 additions and 2 deletions

View File

@ -185,8 +185,9 @@ void Read16(u16& _rReturnValue, const u32 _Address)
m_CPStatusReg.Breakpoint = fifo.bFF_Breakpoint;
m_CPStatusReg.ReadIdle = !fifo.CPReadWriteDistance || !fifo.bFF_GPReadEnable;
m_CPStatusReg.CommandIdle = fifo.CPCmdIdle;
m_CPStatusReg.UnderflowLoWatermark = fifo.CPReadIdle;
m_CPStatusReg.UnderflowLoWatermark = (fifo.CPReadWriteDistance <= fifo.CPLoWatermark);
m_CPStatusReg.OverflowHiWatermark = (fifo.CPReadWriteDistance >= fifo.CPHiWatermark);
// hack: CPU will always believe fifo is empty and on idle
//m_CPStatusReg.ReadIdle = 1;
//m_CPStatusReg.CommandIdle = 1;