@@ -144,7 +144,7 @@ void PCSX::SIO1::interrupt() {
144
144
145
145
uint8_t PCSX::SIO1::readData8 () {
146
146
updateStat ();
147
- if (m_sio1fifo || !m_sio1fifo->eof ()) {
147
+ if (m_sio1fifo && !m_sio1fifo->eof ()) {
148
148
if (m_regs.status & SR_RXRDY) {
149
149
m_regs.data = m_sio1fifo->byte ();
150
150
g_emulator->m_mem ->writeHardwareRegister <0x1050 , uint8_t >(m_regs.data );
@@ -156,7 +156,7 @@ uint8_t PCSX::SIO1::readData8() {
156
156
157
157
uint16_t PCSX::SIO1::readData16 () {
158
158
updateStat ();
159
- if (m_sio1fifo || !m_sio1fifo->eof ()) {
159
+ if (m_sio1fifo && !m_sio1fifo->eof ()) {
160
160
if (m_regs.status & SR_RXRDY) {
161
161
m_sio1fifo->read (&m_regs.data , 2 );
162
162
g_emulator->m_mem ->writeHardwareRegister <0x1050 , uint16_t >(m_regs.data );
@@ -168,7 +168,7 @@ uint16_t PCSX::SIO1::readData16() {
168
168
169
169
uint32_t PCSX::SIO1::readData32 () {
170
170
updateStat ();
171
- if (m_sio1fifo || !m_sio1fifo->eof ()) {
171
+ if (m_sio1fifo && !m_sio1fifo->eof ()) {
172
172
if (m_regs.status & SR_RXRDY) {
173
173
m_sio1fifo->read (&m_regs.data , 4 );
174
174
g_emulator->m_mem ->writeHardwareRegister <0x1050 , uint32_t >(m_regs.data );
0 commit comments