notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51f7728
)
sio: no DTR resets device
author
notaz
<notasas@gmail.com>
Wed, 6 Jul 2011 17:16:51 +0000
(20:16 +0300)
committer
notaz
<notasas@gmail.com>
Tue, 12 Jul 2011 21:28:48 +0000
(
00:28
+0300)
tested on the real thing
libpcsxcore/sio.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/sio.c
b/libpcsxcore/sio.c
index
df130e8
..
12fd0bd
100644
(file)
--- a/
libpcsxcore/sio.c
+++ b/
libpcsxcore/sio.c
@@
-279,7
+279,7
@@
void sioWriteMode16(unsigned short value) {
void sioWriteCtrl16(unsigned short value) {
CtrlReg = value & ~RESET_ERR;
if (value & RESET_ERR) StatReg &= ~IRQ;
- if ((CtrlReg & SIO_RESET) ||
(!CtrlReg
)) {
+ if ((CtrlReg & SIO_RESET) ||
!(CtrlReg & DTR
)) {
padst = 0; mcdst = 0; parp = 0;
StatReg = TX_RDY | TX_EMPTY;
psxRegs.interrupt &= ~(1 << PSXINT_SIO);