From aea8ef5faa6b9ccb4c81b09af6f05015e8a5c1da Mon Sep 17 00:00:00 2001 From: "SND\\shalma_cp" Date: Sat, 30 Oct 2010 15:46:26 +0000 Subject: sio.c - turn off rx,tx rdy when sio irq not hit - experimental idea: not in use git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@58932 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/sio.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'libpcsxcore') diff --git a/libpcsxcore/sio.c b/libpcsxcore/sio.c index 22d96f9c..5c365404 100644 --- a/libpcsxcore/sio.c +++ b/libpcsxcore/sio.c @@ -766,7 +766,21 @@ unsigned char sioRead8() { } unsigned short sioReadStat16() { - return StatReg; + u16 hard; + + hard = StatReg; + +#if 0 + // wait for IRQ first + if( psxRegs.interrupt & (1 << PSXINT_SIO) ) + { + hard &= ~TX_RDY; + hard &= ~RX_RDY; + hard &= ~TX_EMPTY; + } +#endif + + return hard; } unsigned short sioReadMode16() { -- cgit v1.2.3