Previous 199869 Revisions Next

r20262 Monday 14th January, 2013 at 15:47:05 UTC by Andrew Gardner
Hooked up lamps in Virtua Racing.  [SailorSat]
[src/mame/drivers]model1.c
[src/mame/includes]model1.h

trunk/src/mame/includes/model1.h
r20261r20262
9797   UINT16 *m_paletteram16;
9898   UINT32 *m_poly_rom;
9999   UINT32 *m_poly_ram;
100   UINT16 m_lamp_state;
100101   DECLARE_READ16_MEMBER(io_r);
101102   DECLARE_WRITE16_MEMBER(io_w);
102103   DECLARE_READ16_MEMBER(fifoin_status_r);
trunk/src/mame/drivers/model1.c
r20261r20262
645645   if(offset < 0x8)
646646      return ioport(analognames[offset])->read_safe(0x00);
647647
648   if(offset == 0x0f)
649      return m_lamp_state;
650
648651   if(offset < 0x10)
649652   {
650653      offset -= 0x8;
r20261r20262
660663WRITE16_MEMBER(model1_state::io_w)
661664{
662665   if(offset == 0x0f){
663      // tested in vf, swa, wingwar
666      // tested in vr, vf, swa, wingwar
664667      set_led_status(machine(), 0, data & 0x4);   // START (1)
665668      set_led_status(machine(), 1, data & 0x8);   // VIEW1 (START2 - VF)
666669      set_led_status(machine(), 2, data & 0x10);  // VIEW2 (VIEW - SWA)
667670      set_led_status(machine(), 3, data & 0x20);  // VIEW3
668671      set_led_status(machine(), 4, data & 0x40);  // VIEW4
672      set_led_status(machine(), 5, data & 0x80);  // RACE LEADER
673      m_lamp_state = data;
669674      return;
670675   }
671676   logerror("IOW: %02x %02x\n", offset, data);
r20261r20262
965970   AM_RANGE(0x900000, 0x903fff) AM_RAM_WRITE(p_w) AM_SHARE("paletteram")
966971   AM_RANGE(0x910000, 0x91bfff) AM_RAM  AM_SHARE("color_xlat")
967972
968   AM_RANGE(0xc00000, 0xc0003f) AM_READ(io_r) AM_WRITENOP
973   AM_RANGE(0xc00000, 0xc0003f) AM_READWRITE(io_r, io_w)
969974
970975   AM_RANGE(0xc00040, 0xc00043) AM_READWRITE(network_ctl_r, network_ctl_w)
971976

Previous 199869 Revisions Next


© 1997-2024 The MAME Team