summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-10-30 15:46:26 +0000
committerSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-10-30 15:46:26 +0000
commitaea8ef5faa6b9ccb4c81b09af6f05015e8a5c1da (patch)
treeda59d88e6e9241de5bfc8fa670b877d098bfc3be /libpcsxcore
parent1a3810c9c51423ff84a9e00206b46f1041204c00 (diff)
downloadpcsxr-aea8ef5faa6b9ccb4c81b09af6f05015e8a5c1da.tar.gz
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
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/sio.c16
1 files changed, 15 insertions, 1 deletions
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() {