Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/mame/access/acvirus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
#include "virusa.lh"
#include "virusb.lh"
#include "virusc.lh"
#include "virusrckxl.lh"


namespace {
Expand Down Expand Up @@ -109,6 +110,7 @@ class acvirus_state : public driver_device
void virusa(machine_config &config) ATTR_COLD;
void virusb(machine_config &config) ATTR_COLD;
void virusc(machine_config &config) ATTR_COLD;
void virusrckxl(machine_config &config) ATTR_COLD;

void init_virus() ATTR_COLD;

Expand Down Expand Up @@ -205,6 +207,7 @@ u8 acvirus_state::p4_r()
void acvirus_state::p4_w(u8 data)
{
m_leds->write_mx(data);
// logerror("LED write_mx data: %02X\n", data);

if (BIT(m_scan, 3))
m_led_pattern = data;
Expand All @@ -219,6 +222,7 @@ void acvirus_state::p5_w(u8 data)

m_scan = data & 15;
m_leds->matrix(1 << m_scan, m_led_pattern);
// logerror("LED matrix: %d pattern: %02X\n", m_scan, m_led_pattern);
}

void acvirus_state::prog_map(address_map &map)
Expand Down Expand Up @@ -306,7 +310,7 @@ void acvirus_state::virus_common(machine_config &config)
HD44780(config, m_lcdc, 270000); // TODO: clock not measured, datasheet typical clock used
m_lcdc->set_lcd_size(2, 16);

PWM_DISPLAY(config, m_leds).set_size(8, 8);
PWM_DISPLAY(config, m_leds).set_size(16, 8);

SPEAKER(config, "speaker", 2).front();
}
Expand Down Expand Up @@ -359,6 +363,11 @@ void acvirus_state::virusc(machine_config &config)
config.set_default_layout(layout_virusc);
}

void acvirus_state::virusrckxl(machine_config &config)
{
virusc(config);
config.set_default_layout(layout_virusrckxl);
}

INPUT_PORTS_START( virusa_knobs )
PORT_START("knob_0")
Expand Down Expand Up @@ -822,5 +831,5 @@ SYST( 1997, virusa, 0, 0, virusa, virusa, acvirus_state, empty_init, "Access
SYST( 1999, virusb, 0, 0, virusb, virusb, acvirus_state, empty_init, "Access", "Virus B (Ver. T)", MACHINE_NOT_WORKING|MACHINE_NO_SOUND )
SYST( 2002, virusc, 0, 0, virusc, virusc, acvirus_state, empty_init, "Access", "Virus C", MACHINE_NOT_WORKING|MACHINE_NO_SOUND )
SYST( 2001, virusrck, 0, 0, virusb, virusrck, acvirus_state, empty_init, "Access", "Virus Rack (Ver. T)", MACHINE_NOT_WORKING|MACHINE_NO_SOUND )
SYST( 2002, virusrckxl, 0, 0, virusc, virusrck, acvirus_state, empty_init, "Access", "Virus Rack XL", MACHINE_NOT_WORKING|MACHINE_NO_SOUND )
SYST( 2002, virusrckxl, 0, 0, virusrckxl, virusrck, acvirus_state, empty_init, "Access", "Virus Rack XL", MACHINE_NOT_WORKING|MACHINE_NO_SOUND )
SYST( 2004, viruscl, 0, 0, virusb, virusb, acvirus_state, empty_init, "Access", "Virus Classic", MACHINE_NOT_WORKING|MACHINE_NO_SOUND )
5 changes: 0 additions & 5 deletions src/mame/layout/virusc.lay
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,6 @@ license:CC0-1.0
<element ref="on_off_text"><bounds x="1522" y="42" width="43" height="9"/></element>


<!-- FIXME: All input tags and input masks here are incorrect. They're just place holders for now -->

<group ref="knob_0_6_12"><!-- MASTER VOLUME --><bounds x="99" y="105" width="77" height="77"/></group>
<param name="knob_input" value="knob_2"/>
<group ref="knob"><bounds x="99" y="105" width="77" height="77"/></group>
Expand Down Expand Up @@ -1004,13 +1002,11 @@ license:CC0-1.0
<element ref="category_text"><bounds x="690" y="558" width="38" height="8"/></element>


<!-- FIXME: knob type -->
<group ref="knob_minus_plus"><!-- SOFT KNOB 1 --><bounds x="751" y="467" width="77" height="77"/></group>
<param name="knob_input" value="knob_9"/>
<group ref="knob"><bounds x="751" y="467" width="77" height="77"/></group>
<element ref="soft_knob_1_text"><bounds x="750" y="547" width="80" height="12"/></element>

<!-- FIXME: knob type -->
<group ref="knob_minus_plus"><!-- SOFT KNOB 2 --><bounds x="859" y="467" width="77" height="77"/></group>
<param name="knob_input" value="knob_10"/>
<group ref="knob"><bounds x="859" y="467" width="77" height="77"/></group>
Expand Down Expand Up @@ -1132,7 +1128,6 @@ license:CC0-1.0
<element ref="filt_2_text"><bounds x="1459" y="300" width="31" height="12"/></element>

<element ref="mode_text"><bounds x="1400" y="300" width="30" height="12"/></element>
<!-- TODO: lines -->

<element ref="led" name="6.0"><!-- 6B0 --><bounds x="1513" y="230" width="11" height="11"/></element>
<element ref="led" name="6.1"><!-- 6B1 --><bounds x="1558" y="230" width="11" height="11"/></element>
Expand Down
Loading
Loading