@@ -84,8 +84,8 @@ class isa8_ubpnic_device
84
84
, m_buf(nullptr )
85
85
, m_idx(nullptr )
86
86
, m_int_state(false )
87
- {
88
- }
87
+ {
88
+ }
89
89
90
90
protected:
91
91
virtual tiny_rom_entry const *device_rom_region () const override ATTR_COLD;
@@ -212,42 +212,50 @@ void isa8_ubpnic_device::mem_map(address_map &map)
212
212
213
213
u8 isa8_ubpnic_device::txinit_r ()
214
214
{
215
- LOGMASKED (LOG_REGR, " %s: txinit_r\n " , machine ().describe_context ());
215
+ if (!machine ().side_effects_disabled ())
216
+ {
217
+ LOGMASKED (LOG_REGR, " %s: txinit_r\n " , machine ().describe_context ());
216
218
217
- m_intstat &= ~(INTSTAT_TPKTOK | INTSTAT_TXDONE);
219
+ m_intstat &= ~(INTSTAT_TPKTOK | INTSTAT_TXDONE);
218
220
219
- // trigger dma transfer
220
- txdrq_w (1 );
221
+ // trigger dma transfer
222
+ txdrq_w (1 );
223
+ }
221
224
222
225
return 0 ;
223
226
}
224
227
225
228
u8 isa8_ubpnic_device::clrpav_r ()
226
229
{
227
- LOGMASKED (LOG_REGR, " %s: clrpav_r\n " , machine ().describe_context ());
230
+ if (!machine ().side_effects_disabled ())
231
+ {
232
+ LOGMASKED (LOG_REGR, " %s: clrpav_r\n " , machine ().describe_context ());
228
233
229
- // initialize next empty page if rx buffer was full
230
- if (rxb_full ())
231
- m_idx[m_epppav & EPP_EPP] = 0 ;
234
+ // initialize next empty page if rx buffer was full
235
+ if (rxb_full ())
236
+ m_idx[m_epppav & EPP_EPP] = 0 ;
232
237
233
- m_epppav &= ~EPP_PAV;
238
+ m_epppav &= ~EPP_PAV;
234
239
235
- if (!(m_intstat & INTSTAT_PAVINT))
236
- irq<INTSTAT_PAVINT>(0 );
240
+ if (!(m_intstat & INTSTAT_PAVINT))
241
+ irq<INTSTAT_PAVINT>(0 );
242
+ }
237
243
238
244
return 0 ;
239
245
}
240
246
241
247
u8 isa8_ubpnic_device::intstat_r ()
242
248
{
243
- LOGMASKED (LOG_REGR, " %s: intstat_r 0x%02x\n " , machine ().describe_context (), m_intstat);
249
+ if (!machine ().side_effects_disabled ())
250
+ LOGMASKED (LOG_REGR, " %s: intstat_r 0x%02x\n " , machine ().describe_context (), m_intstat);
244
251
245
252
return m_intstat;
246
253
}
247
254
248
255
u8 isa8_ubpnic_device::epppav_r ()
249
256
{
250
- LOGMASKED (LOG_REGR, " %s: epppav_r 0x%02x\n " , machine ().describe_context (), m_epppav);
257
+ if (!machine ().side_effects_disabled ())
258
+ LOGMASKED (LOG_REGR, " %s: epppav_r 0x%02x\n " , machine ().describe_context (), m_epppav);
251
259
252
260
return m_epppav;
253
261
}
@@ -327,6 +335,7 @@ void isa8_ubpnic_device::intctl_w(u8 data)
327
335
328
336
interrupt ();
329
337
}
338
+
330
339
void isa8_ubpnic_device::fppmie_w (u8 data)
331
340
{
332
341
LOGMASKED (LOG_REGW, " %s: fppmie_w 0x%02x\n " , machine ().describe_context (), data);
@@ -338,7 +347,8 @@ void isa8_ubpnic_device::fppmie_w(u8 data)
338
347
339
348
u8 isa8_ubpnic_device::rpidx_r (offs_t offset)
340
349
{
341
- LOGMASKED (LOG_REGR, " %s: rpidx_r 0x%02x data 0x%02x\n " , machine ().describe_context (), offset, m_idx[offset]);
350
+ if (!machine ().side_effects_disabled ())
351
+ LOGMASKED (LOG_REGR, " %s: rpidx_r 0x%02x data 0x%02x\n " , machine ().describe_context (), offset, m_idx[offset]);
342
352
343
353
return m_idx[offset];
344
354
}
@@ -352,7 +362,8 @@ void isa8_ubpnic_device::rpidx_w(offs_t offset, u8 data)
352
362
353
363
u8 isa8_ubpnic_device::buf_r (offs_t offset)
354
364
{
355
- LOGMASKED (LOG_BUF, " %s: buf_r 0x%02x data 0x%02x\n " , machine ().describe_context (), offset, m_buf[offset]);
365
+ if (!machine ().side_effects_disabled ())
366
+ LOGMASKED (LOG_BUF, " %s: buf_r 0x%02x data 0x%02x\n " , machine ().describe_context (), offset, m_buf[offset]);
356
367
357
368
return m_buf[offset];
358
369
}
0 commit comments