summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-12-16 00:06:20 -0500
committer AJR <ajrhacker@users.noreply.github.com>2019-12-16 00:06:20 -0500
commit87815f3bfbe42858fe89f88a8830a67c8d222870 (patch)
treeab9b3c705ba62d4e83ba16b353c5fc435aea4616
parent6f4c97a8a6c732a8c2412d044b76c7b855d28145 (diff)
bbl380.cpp: Monument to the unknown peripheral (nw)
-rw-r--r--src/mame/drivers/bbl380.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mame/drivers/bbl380.cpp b/src/mame/drivers/bbl380.cpp
index e75842a5332..f56bf1edb9e 100644
--- a/src/mame/drivers/bbl380.cpp
+++ b/src/mame/drivers/bbl380.cpp
@@ -24,6 +24,10 @@ public:
void bbl380(machine_config &config);
private:
+ void cs3_command_w(u8 data);
+ u8 cs3_data_r();
+ void cs3_data_w(u8 data);
+
virtual void machine_start() override;
virtual void machine_reset() override;
@@ -49,9 +53,28 @@ void bbl380_state::machine_reset()
{
}
+void bbl380_state::cs3_command_w(u8 data)
+{
+ logerror("%s: CS3 command $%02X\n", machine().describe_context(), data);
+}
+
+u8 bbl380_state::cs3_data_r()
+{
+ if (!machine().side_effects_disabled())
+ logerror("%s: CS3 data read\n", machine().describe_context());
+ return 0;
+}
+
+void bbl380_state::cs3_data_w(u8 data)
+{
+ logerror("%s: CS3 data $%02X\n", machine().describe_context(), data);
+}
+
void bbl380_state::bbl380_map(address_map &map)
{
map(0x000000, 0x3fffff).rom().region("maincpu", 0); // not correct
+ map(0x600000, 0x600000).w(FUNC(bbl380_state::cs3_command_w));
+ map(0x604000, 0x604000).rw(FUNC(bbl380_state::cs3_data_r), FUNC(bbl380_state::cs3_data_w));
}
static INPUT_PORTS_START( bbl380 )