@@ -294,29 +294,29 @@ void gdfs_state::adc_int_w(int state)
294
294
*/
295
295
void ssv_state::lockout_w (offs_t offset, uint16_t data, uint16_t mem_mask)
296
296
{
297
- // logerror("%s - Unknown lockout bit written %02X\n", machine().describe_context(), data & 0xff);
297
+ // logerror("%s - Unknown lockout bit written %02X\n", machine().describe_context(), data & 0xff);
298
298
if (ACCESSING_BITS_0_7)
299
299
{
300
300
machine ().bookkeeping ().coin_lockout_w (1 , BIT (~data, 0 ));
301
301
machine ().bookkeeping ().coin_lockout_w (0 , BIT (~data, 1 ));
302
302
machine ().bookkeeping ().coin_counter_w (1 , BIT ( data, 2 ));
303
303
machine ().bookkeeping ().coin_counter_w (0 , BIT ( data, 3 ));
304
- // Bit 6 is unknown
304
+ // Bit 6 is unknown
305
305
enable_video (BIT (data, 7 ));
306
306
}
307
307
}
308
308
309
309
// Same as above but with inverted lockout lines
310
310
void ssv_state::lockout_inv_w (offs_t offset, uint16_t data, uint16_t mem_mask)
311
311
{
312
- // logerror("%s - Unknown lockout bit written %02X\n", machine().describe_context(), data & 0xff);
312
+ // logerror("%s - Unknown lockout bit written %02X\n", machine().describe_context(), data & 0xff);
313
313
if (ACCESSING_BITS_0_7)
314
314
{
315
315
machine ().bookkeeping ().coin_lockout_w (1 , BIT (data, 0 ));
316
316
machine ().bookkeeping ().coin_lockout_w (0 , BIT (data, 1 ));
317
317
machine ().bookkeeping ().coin_counter_w (1 , BIT (data, 2 ));
318
318
machine ().bookkeeping ().coin_counter_w (0 , BIT (data, 3 ));
319
- // Bit 6 is unknown
319
+ // Bit 6 is unknown
320
320
enable_video (BIT (data, 7 ));
321
321
}
322
322
}
@@ -511,13 +511,12 @@ uint16_t ssv_state::hypreact_input_r()
511
511
{
512
512
const uint16_t input_sel = *m_input_sel;
513
513
514
- if (BIT (input_sel, 0 )) return m_io_key[0 ]->read ();
515
- if (BIT (input_sel, 1 )) return m_io_key[1 ]->read ();
516
- if (BIT (input_sel, 2 )) return m_io_key[2 ]->read ();
517
- if (BIT (input_sel, 3 )) return m_io_key[3 ]->read ();
518
- if (!machine ().side_effects_disabled ())
519
- logerror (" CPU #0 PC %06X: unknown input read: %04X\n " , m_maincpu->pc (), input_sel);
520
- return 0xffff ;
514
+ uint16_t result = 0xffff ;
515
+ if (BIT (input_sel, 0 )) result &= m_io_key[0 ]->read ();
516
+ if (BIT (input_sel, 1 )) result &= m_io_key[1 ]->read ();
517
+ if (BIT (input_sel, 2 )) result &= m_io_key[2 ]->read ();
518
+ if (BIT (input_sel, 3 )) result &= m_io_key[3 ]->read ();
519
+ return result;
521
520
}
522
521
523
522
void ssv_state::hypreact_map (address_map &map)
@@ -642,13 +641,12 @@ uint16_t ssv_state::srmp4_input_r()
642
641
{
643
642
const uint16_t input_sel = *m_input_sel;
644
643
645
- if (BIT (input_sel, 1 )) return m_io_key[0 ]->read ();
646
- if (BIT (input_sel, 2 )) return m_io_key[1 ]->read ();
647
- if (BIT (input_sel, 3 )) return m_io_key[2 ]->read ();
648
- if (BIT (input_sel, 4 )) return m_io_key[3 ]->read ();
649
- if (!machine ().side_effects_disabled ())
650
- logerror (" CPU #0 PC %06X: unknown input read: %04X\n " , m_maincpu->pc (), input_sel);
651
- return 0xffff ;
644
+ uint16_t result = 0xffff ;
645
+ if (BIT (input_sel, 1 )) result &= m_io_key[0 ]->read ();
646
+ if (BIT (input_sel, 2 )) result &= m_io_key[1 ]->read ();
647
+ if (BIT (input_sel, 3 )) result &= m_io_key[2 ]->read ();
648
+ if (BIT (input_sel, 4 )) result &= m_io_key[3 ]->read ();
649
+ return result;
652
650
}
653
651
654
652
void ssv_state::srmp4_map (address_map &map)
@@ -2567,18 +2565,18 @@ void ssv_state::init_srmp7()
2567
2565
}
2568
2566
2569
2567
2570
- static constexpr XTAL SSV_MASTER_CLOCK = XTAL(48'000'000 )/3 ;
2571
-
2572
- static constexpr XTAL SSV_PIXEL_CLOCK = XTAL(42'954'545 )/6 ;
2573
- static constexpr uint32_t SSV_HTOTAL = 0x1c6 ;
2574
- static constexpr uint32_t SSV_HBEND = 0 ;
2575
- static constexpr uint32_t SSV_HBSTART = 0x150 ;
2576
- static constexpr uint32_t SSV_VTOTAL = 0x106 ;
2577
- static constexpr uint32_t SSV_VBEND = 0 ;
2578
- static constexpr uint32_t SSV_VBSTART = 0xf0 ;
2579
-
2580
2568
void ssv_state::ssv (machine_config &config)
2581
2569
{
2570
+ constexpr XTAL SSV_MASTER_CLOCK = XTAL (48'000'000 ) / 3 ;
2571
+
2572
+ constexpr XTAL SSV_PIXEL_CLOCK = XTAL (42'954'545 ) / 6 ;
2573
+ constexpr uint32_t SSV_HTOTAL = 0x1c6 ;
2574
+ constexpr uint32_t SSV_HBEND = 0 ;
2575
+ constexpr uint32_t SSV_HBSTART = 0x150 ;
2576
+ constexpr uint32_t SSV_VTOTAL = 0x106 ;
2577
+ constexpr uint32_t SSV_VBEND = 0 ;
2578
+ constexpr uint32_t SSV_VBSTART = 0xf0 ;
2579
+
2582
2580
// basic machine hardware
2583
2581
V60 (config, m_maincpu, SSV_MASTER_CLOCK); // Based on STA-0001 & STA-0001B System boards
2584
2582
m_maincpu->set_irq_acknowledge_callback (FUNC (ssv_state::irq_callback));
0 commit comments