summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2019-06-20 03:21:04 +0200
committer mooglyguy <therealmogminer@gmail.com>2019-06-20 03:21:26 +0200
commitf57f0c947fb63c8d3f23e2d5ec69e460c9ebabcc (patch)
tree70801eae751b51e4cfd2ce54d3d6792b33295cd5
parent740763c3261444b25f3ea3bfcc672f92c5e524b5 (diff)
-dpb_storeaddr: Added skeleton device for DPB-7000 Store Address Card. [Ryan Holtz]
-rw-r--r--scripts/target/mame/mess.lua2
-rw-r--r--src/mame/drivers/dpb7000.cpp90
-rw-r--r--src/mame/video/dpb_brushproc.cpp134
-rw-r--r--src/mame/video/dpb_brushproc.h22
-rw-r--r--src/mame/video/dpb_storeaddr.cpp264
-rw-r--r--src/mame/video/dpb_storeaddr.h91
6 files changed, 512 insertions, 91 deletions
diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua
index 539cfea8155..91f332ed3ee 100644
--- a/scripts/target/mame/mess.lua
+++ b/scripts/target/mame/mess.lua
@@ -3898,6 +3898,8 @@ files {
MAME_DIR .. "src/mame/video/dpb_combiner.h",
MAME_DIR .. "src/mame/video/dpb_brushproc.cpp",
MAME_DIR .. "src/mame/video/dpb_brushproc.h",
+ MAME_DIR .. "src/mame/video/dpb_storeaddr.cpp",
+ MAME_DIR .. "src/mame/video/dpb_storeaddr.h",
MAME_DIR .. "src/mame/drivers/dps1.cpp",
MAME_DIR .. "src/mame/drivers/dsb46.cpp",
MAME_DIR .. "src/mame/drivers/dual68.cpp",
diff --git a/src/mame/drivers/dpb7000.cpp b/src/mame/drivers/dpb7000.cpp
index de8138cdb24..f3b57c97d9a 100644
--- a/src/mame/drivers/dpb7000.cpp
+++ b/src/mame/drivers/dpb7000.cpp
@@ -21,6 +21,7 @@
#include "video/mc6845.h"
#include "video/dpb_brushproc.h"
#include "video/dpb_combiner.h"
+#include "video/dpb_storeaddr.h"
#include "emupal.h"
#include "screen.h"
#include <deque>
@@ -35,10 +36,9 @@
#define LOG_FDC_PORT (1 << 7)
#define LOG_FDC_CMD (1 << 8)
#define LOG_OUTPUT_TIMING (1 << 9)
-#define LOG_STORE_ADDR (1 << 10)
#define LOG_BRUSH_ADDR (1 << 11)
#define LOG_ALL (LOG_UNKNOWN | LOG_UCODE | LOG_MORE_UCODE | LOG_CSR | LOG_CTRLBUS | LOG_SYS_CTRL | LOG_FDC_CTRL | LOG_FDC_PORT | LOG_FDC_CMD | \
- LOG_OUTPUT_TIMING | LOG_STORE_ADDR | LOG_BRUSH_ADDR)
+ LOG_OUTPUT_TIMING | LOG_BRUSH_ADDR)
#define VERBOSE (LOG_ALL &~ LOG_FDC_CTRL)
#include "logmacro.h"
@@ -70,6 +70,7 @@ public:
, m_filter_ce(*this, "filter_ce")
, m_filter_cf(*this, "filter_cf")
, m_filter_cg(*this, "filter_cg")
+ , m_store_addr(*this, "store_addr%u", 0U)
, m_brush_proc(*this, "brush_proc%u", 0U)
, m_combiner(*this, "combiner")
{
@@ -161,6 +162,7 @@ private:
required_device<tdc1008_device> m_filter_cf;
required_device<tdc1008_device> m_filter_cg;
+ required_device_array<dpb7000_storeaddr_card_device, 2> m_store_addr;
required_device_array<dpb7000_brushproc_card_device, 2> m_brush_proc;
required_device<dpb7000_combiner_card_device> m_combiner;
@@ -223,14 +225,6 @@ private:
uint16_t m_cursor_size_x;
uint16_t m_cursor_size_y;
- // Store Address Card
- uint16_t m_rhscr[2];
- uint16_t m_rvscr[2];
- uint16_t m_rzoom[2];
- uint16_t m_fld_sel[2];
- uint16_t m_cxpos[2];
- uint16_t m_cypos[2];
-
// Brush Address Card
uint16_t m_brush_addr_func;
uint8_t m_bif;
@@ -436,14 +430,6 @@ void dpb7000_state::machine_start()
save_item(NAME(m_cursor_size_x));
save_item(NAME(m_cursor_size_y));
- // Store Address Card
- save_item(NAME(m_rhscr));
- save_item(NAME(m_rvscr));
- save_item(NAME(m_rzoom));
- save_item(NAME(m_fld_sel));
- save_item(NAME(m_cxpos));
- save_item(NAME(m_cypos));
-
// Brush Address Card
save_item(NAME(m_brush_addr_func));
save_item(NAME(m_bif));
@@ -499,12 +485,8 @@ void dpb7000_state::machine_reset()
m_cursor_size_y = 0;
// Store Address Card
- memset(m_rhscr, 0, sizeof(uint16_t) * 2);
- memset(m_rvscr, 0, sizeof(uint16_t) * 2);
- memset(m_rzoom, 0, sizeof(uint16_t) * 2);
- memset(m_fld_sel, 0, sizeof(uint16_t) * 2);
- memset(m_cxpos, 0, sizeof(uint16_t) * 2);
- memset(m_cypos, 0, sizeof(uint16_t) * 2);
+ m_store_addr[0]->s_type_w(0);
+ m_store_addr[1]->s_type_w(1);
// Brush Address Card
m_brush_addr_func = 0;
@@ -848,48 +830,9 @@ WRITE16_MEMBER(dpb7000_state::cpu_ctrlbus_w)
}
case 2: // Store Address Card
- switch ((data >> 12) & 7)
- {
- case 0:
- LOGMASKED(LOG_CTRLBUS | LOG_STORE_ADDR, "%s: CPU write to Store Address Card (%s), set RHSCR: %03x\n", machine().describe_context(), BIT(data, 15) ? "II" : "Both", data & 0xfff);
- m_rhscr[1] = data & 0xfff;
- if (BIT(data, 15))
- m_rhscr[0] = data & 0xfff;
- break;
- case 1:
- LOGMASKED(LOG_CTRLBUS | LOG_STORE_ADDR, "%s: CPU write to Store Address Card (%s), set RVSCR: %03x\n", machine().describe_context(), BIT(data, 15) ? "II" : "Both", data & 0xfff);
- m_rvscr[1] = data & 0xfff;
- if (BIT(data, 15))
- m_rvscr[0] = data & 0xfff;
- break;
- case 2:
- LOGMASKED(LOG_CTRLBUS | LOG_STORE_ADDR, "%s: CPU write to Store Address Card (%s), set R ZOOM: %03x\n", machine().describe_context(), BIT(data, 15) ? "II" : "Both", data & 0xfff);
- m_rzoom[1] = data & 0xfff;
- if (BIT(data, 15))
- m_rzoom[0] = data & 0xfff;
- break;
- case 3:
- LOGMASKED(LOG_CTRLBUS | LOG_STORE_ADDR, "%s: CPU write to Store Address Card (%s), set FLDSEL: %03x\n", machine().describe_context(), BIT(data, 15) ? "II" : "Both", data & 0xfff);
- m_fld_sel[1] = data & 0xfff;
- if (BIT(data, 15))
- m_fld_sel[0] = data & 0xfff;
- break;
- case 4:
- LOGMASKED(LOG_CTRLBUS | LOG_STORE_ADDR, "%s: CPU write to Store Address Card (%s), set CXPOS: %03x\n", machine().describe_context(), BIT(data, 15) ? "II" : "Both", data & 0xfff);
- m_cxpos[1] = data & 0xfff;
- if (BIT(data, 15))
- m_cxpos[0] = data & 0xfff;
- break;
- case 5:
- LOGMASKED(LOG_CTRLBUS | LOG_STORE_ADDR, "%s: CPU write to Store Address Card (%s), set CYPOS: %03x\n", machine().describe_context(), BIT(data, 15) ? "II" : "Both", data & 0xfff);
- m_cypos[1] = data & 0xfff;
- if (BIT(data, 15))
- m_cypos[0] = data & 0xfff;
- break;
- default:
- LOGMASKED(LOG_CTRLBUS | LOG_STORE_ADDR, "%s: CPU write to Store Address Card (%s), unknown register: %04x\n", machine().describe_context(), BIT(data, 15) ? "II" : "Both", data);
- break;
- }
+ m_store_addr[1]->reg_w(data);
+ if (BIT(data, 15))
+ m_store_addr[0]->reg_w(data);
break;
case 8: // Brush Address Card, "Select 8" signal to PAL 16L8, BE
@@ -1184,6 +1127,10 @@ void dpb7000_state::dpb7000(machine_config &config)
TDC1008(config, m_filter_cf);
TDC1008(config, m_filter_cg);
+ // Store Address Cards
+ DPB7000_STOREADDR(config, m_store_addr[0]);
+ DPB7000_STOREADDR(config, m_store_addr[1]);
+
// Brush Processor Cards
DPB7000_BRUSHPROC(config, m_brush_proc[0]);
DPB7000_BRUSHPROC(config, m_brush_proc[1]);
@@ -1233,17 +1180,6 @@ ROM_START( dpb7000 )
ROM_REGION(0x100, "brushstore_prom", 0)
ROM_LOAD("pb-02a-17421-ada.bin", 0x000, 0x100, CRC(84bf7029) SHA1(9d58322994f6f7e99a9c6478577559c8171670ed))
- ROM_REGION(0xc00, "storeaddr_x_prom", 0)
- ROM_LOAD("pb-032-17425b-bbb.bin", 0x000, 0x400, CRC(2051a6e4) SHA1(3bd8a9015e77b034a94fe072a9753649b76f9f69))
- ROM_LOAD("pb-032-17425b-bcb.bin", 0x400, 0x400, CRC(01aaa6f7) SHA1(e31bff0c68f74996368443bfb58a3524a838f270))
- ROM_LOAD("pb-032-17425b-bdb.bin", 0x800, 0x400, CRC(20e2fb9e) SHA1(c4c77ec02ab6d3a1a28edf5543e57235a64a9d8d))
-
- ROM_REGION(0xc00, "storeaddr_protx_prom", 0)
- ROM_LOAD("pb-032-17425b-deb.bin", 0x000, 0x400, CRC(faeb44dd) SHA1(3eaf981245824332d216e97095bdc02ff04e4800))
-
- ROM_REGION(0xc00, "storeaddr_proty_prom", 0)
- ROM_LOAD("pb-032-17425b-edb.bin", 0x000, 0x400, CRC(183bfdc0) SHA1(175b052948e4e4a9421d8913479e7531b7e5f03c))
-
ROM_REGION(0x1200, "output_timing_proms", 0)
ROM_LOAD("pb-037-17418-bea.bin", 0x0000, 0x400, CRC(644e82a3) SHA1(d7634e03809abe2db924571c05821c1b2aca051b))
ROM_LOAD("pb-037-17418-bga.bin", 0x0400, 0x400, CRC(3b2c3635) SHA1(2038d616dd7f65ba55497bd037b0ad69aaa801ed))
diff --git a/src/mame/video/dpb_brushproc.cpp b/src/mame/video/dpb_brushproc.cpp
index cad50dae4aa..5bbbd5e8db3 100644
--- a/src/mame/video/dpb_brushproc.cpp
+++ b/src/mame/video/dpb_brushproc.cpp
@@ -26,21 +26,31 @@ dpb7000_brushproc_card_device::dpb7000_brushproc_card_device(const machine_confi
: device_t(mconfig, DPB7000_BRUSHPROC, tag, owner, clock)
, m_ext_in(0)
, m_brush_in(0)
+ , m_cbus_in(0)
, m_k_in(0)
, m_k_enable(0)
, m_k_zero(false)
, m_k_invert(false)
+ , m_k_product(0)
+ , m_ext_product(0)
, m_func(0)
, m_sel_eh(false)
, m_b_bus_ah(false)
, m_fcs(false)
+ , m_use_store1_for_brush(false)
+ , m_use_store2_for_brush(false)
+ , m_use_ext_for_brush(false)
+ , m_use_store1_or_ext_for_brush(false)
+ , m_use_store2_for_store1(false)
+ , m_enable_store_ext_multiplicand(false)
+ , m_output_16bit(false)
+ , m_pal_proc_in(false)
+ , m_disable_k_data(false)
, m_prom_addr(0)
, m_prom_base(nullptr)
, m_prom_out(0)
, m_store1(*this)
, m_store2(*this)
- , m_cbus(*this)
- , m_pck(*this)
, m_mult_fa(*this, "mult_fa")
, m_mult_ga(*this, "mult_ga")
, m_mult_gd(*this, "mult_gd")
@@ -57,11 +67,15 @@ void dpb7000_brushproc_card_device::device_start()
save_item(NAME(m_store_in));
save_item(NAME(m_ext_in));
save_item(NAME(m_brush_in));
+ save_item(NAME(m_cbus_in));
save_item(NAME(m_k_in));
save_item(NAME(m_k_enable));
save_item(NAME(m_k_zero));
save_item(NAME(m_k_invert));
+ save_item(NAME(m_k_product));
+
+ save_item(NAME(m_ext_product));
save_item(NAME(m_func));
@@ -70,13 +84,22 @@ void dpb7000_brushproc_card_device::device_start()
save_item(NAME(m_b_bus_ah));
save_item(NAME(m_fcs));
+ save_item(NAME(m_oe));
+ save_item(NAME(m_use_store1_for_brush));
+ save_item(NAME(m_use_store2_for_brush));
+ save_item(NAME(m_use_ext_for_brush));
+ save_item(NAME(m_use_store1_or_ext_for_brush));
+ save_item(NAME(m_use_store2_for_store1));
+ save_item(NAME(m_enable_store_ext_multiplicand));
+ save_item(NAME(m_output_16bit));
+ save_item(NAME(m_pal_proc_in));
+ save_item(NAME(m_disable_k_data));
+
save_item(NAME(m_prom_addr));
save_item(NAME(m_prom_out));
m_store1.resolve_safe();
m_store2.resolve_safe();
- m_cbus.resolve_safe();
- m_pck.resolve_safe();
}
void dpb7000_brushproc_card_device::device_reset()
@@ -84,22 +107,52 @@ void dpb7000_brushproc_card_device::device_reset()
memset(m_store_in, 0, 2);
m_ext_in = 0;
m_brush_in = 0;
+ m_cbus_in = 0;
m_k_in = 0;
- m_k_enable = 0;
- m_k_zero = 0;
- m_k_invert = 0;
+ m_k_enable = false;
+ m_k_zero = false;
+ m_k_invert = false;
+ m_k_product = 0;
+
+ m_ext_product = 0;
m_func = 0;
memset(m_sel_luma, 0, 2);
- m_sel_eh = 0;
- m_b_bus_ah = 0;
- m_fcs = 0;
+ m_sel_eh = false;
+ m_b_bus_ah = false;
+ m_fcs = false;
+
+ memset(m_oe, 0, 4);
+ m_use_store1_for_brush = false;
+ m_use_store2_for_brush = false;
+ m_use_ext_for_brush = false;
+ m_use_store1_or_ext_for_brush = false;
+ m_use_store2_for_store1 = false;
+ m_enable_store_ext_multiplicand = false;
+ m_output_16bit = false;
+ m_pal_proc_in = false;
+ m_disable_k_data = false;
m_prom_addr = 0;
m_prom_base = m_prom->base();
m_prom_out = 0;
+
+ m_mult_fa->xm_w(0);
+ m_mult_fa->ym_w(0);
+ m_mult_fa->rs_w(0);
+ m_mult_fa->ru_w(1);
+
+ m_mult_ga->xm_w(0);
+ m_mult_ga->ym_w(0);
+ m_mult_ga->rs_w(0);
+ m_mult_ga->ru_w(1);
+
+ m_mult_gd->xm_w(0);
+ m_mult_gd->ym_w(0);
+ m_mult_gd->rs_w(0);
+ m_mult_gd->ru_w(1);
}
void dpb7000_brushproc_card_device::device_add_mconfig(machine_config &config)
@@ -144,14 +197,24 @@ void dpb7000_brushproc_card_device::brush_w(uint8_t data)
m_brush_in = data;
}
+void dpb7000_brushproc_card_device::cbus_w(uint8_t data)
+{
+ m_cbus_in = data;
+ update_k_product();
+}
+
void dpb7000_brushproc_card_device::k_w(uint8_t data)
{
m_k_in = data;
+ if (m_k_enable && !m_disable_k_data)
+ update_k_product();
}
void dpb7000_brushproc_card_device::k_en_w(int state)
{
m_k_enable = (bool)state;
+ if (m_k_enable && !m_disable_k_data)
+ update_k_product();
}
void dpb7000_brushproc_card_device::k_zero_w(int state)
@@ -255,35 +318,86 @@ void dpb7000_brushproc_card_device::update_prom_signals()
set_oe4(BIT(m_prom_out, 7));
}
+void dpb7000_brushproc_card_device::update_k_product()
+{
+ const uint16_t x = (uint16_t)m_cbus_in;
+ const uint16_t y = (m_disable_k_data || !m_k_enable) ? 0x00ff : (uint16_t)m_k_in;
+ const uint8_t old = m_k_product;
+ m_k_product = (uint8_t)((x * y + 0x0080) >> 8);
+ if (old != m_k_product)
+ update_ext_product();
+}
+
+void dpb7000_brushproc_card_device::update_ext_product()
+{
+ //const uint16_t old = m_ext_product;
+ const uint16_t y = (uint16_t)m_k_product;
+ uint16_t x = 0;
+ if (!m_k_zero)
+ {
+ if (m_enable_store_ext_multiplicand)
+ x = (uint16_t)m_ext_in;
+ else
+ x = 0xff;
+ }
+ m_ext_product = (uint8_t)((x * y + 0x0080) >> 8);
+}
+
void dpb7000_brushproc_card_device::set_oe1(int state)
{
+ // When 0, force Store I or Store Ext. data onto Brush Data lanes
+ m_oe[0] = (bool)state;
+ m_use_store1_or_ext_for_brush = !m_oe[0];
+ m_use_store1_for_brush = m_use_store1_or_ext_for_brush && m_oe[2];
+ m_use_ext_for_brush = m_use_store1_or_ext_for_brush && !m_oe[2];
}
void dpb7000_brushproc_card_device::set_oe2(int state)
{
+ // When 0, force Store II data onto Brush Data lanes
+ m_oe[1] = (bool)state;
+ m_use_store2_for_brush = !m_oe[1];
}
void dpb7000_brushproc_card_device::set_oe3(int state)
{
+ // When 0, force Store Ext. data onto Store I data lanes (disables Store I data input)
+ m_oe[2] = (bool)state;
+ m_use_store1_for_brush = m_use_store1_or_ext_for_brush && m_oe[2];
+ m_use_ext_for_brush = m_use_store1_or_ext_for_brush && !m_oe[2];
}
void dpb7000_brushproc_card_device::set_oe4(int state)
{
+ // When 0, force Store II data onto Store I data lanes (disables Store I data input)
+ m_oe[3] = (bool)state;
+ m_use_store2_for_store1 = !m_oe[3];
}
void dpb7000_brushproc_card_device::set_mask_sel_h(int state)
{
+ // When 0, multiplies K product with 1.0 (0xff) instead of Store Ext. data.
+ m_enable_store_ext_multiplicand = (bool)state;
}
void dpb7000_brushproc_card_device::set_16bit_h(int state)
{
+ // When 0, enables Store II data output, enables Cx carry-out, and enables Ru pin on multiplier GD.
+ m_output_16bit = (bool)(1 - state);
}
void dpb7000_brushproc_card_device::set_proc_sel_h(int state)
{
+ // When 1, enables the PROC input pin on PAL 20L10 HB, not yet dumped.
+ m_pal_proc_in = (bool)state;
}
void dpb7000_brushproc_card_device::set_k_eq_il(int state)
{
+ // When 1, disables K data lanes, which collectively get pulled to 1.0 (0xff).
+ const bool old = m_disable_k_data;
+ m_disable_k_data = (bool)state;
+ if (old != m_disable_k_data && !m_disable_k_data && m_k_enable)
+ update_k_product();
}
diff --git a/src/mame/video/dpb_brushproc.h b/src/mame/video/dpb_brushproc.h
index 28360032d3a..8f4b1e2b8e2 100644
--- a/src/mame/video/dpb_brushproc.h
+++ b/src/mame/video/dpb_brushproc.h
@@ -34,6 +34,7 @@ public:
void store2_w(uint8_t data);
void ext_w(uint8_t data);
void brush_w(uint8_t data);
+ void cbus_w(uint8_t data);
void k_w(uint8_t data);
void k_en_w(int state);
@@ -49,8 +50,6 @@ public:
auto store1() { return m_store1.bind(); }
auto store2() { return m_store2.bind(); }
- auto cbus() { return m_cbus.bind(); }
- auto pck() { return m_pck.bind(); }
protected:
// device-level overrides
@@ -60,6 +59,8 @@ protected:
virtual const tiny_rom_entry *device_rom_region() const override;
void update_prom_signals();
+ void update_k_product();
+ void update_ext_product();
void set_oe1(int state);
void set_oe2(int state);
@@ -73,11 +74,15 @@ protected:
uint8_t m_store_in[2];
uint8_t m_ext_in;
uint8_t m_brush_in;
+ uint8_t m_cbus_in;
uint8_t m_k_in;
bool m_k_enable;
bool m_k_zero;
bool m_k_invert;
+ uint8_t m_k_product;
+
+ uint8_t m_ext_product;
uint8_t m_func;
@@ -86,14 +91,23 @@ protected:
bool m_b_bus_ah;
bool m_fcs;
+ bool m_oe[4];
+ bool m_use_store1_for_brush;
+ bool m_use_store2_for_brush;
+ bool m_use_ext_for_brush;
+ bool m_use_store1_or_ext_for_brush;
+ bool m_use_store2_for_store1;
+ bool m_enable_store_ext_multiplicand;
+ bool m_output_16bit;
+ bool m_pal_proc_in;
+ bool m_disable_k_data;
+
uint16_t m_prom_addr;
uint8_t *m_prom_base;
uint8_t m_prom_out;
devcb_write8 m_store1;
devcb_write8 m_store2;
- devcb_write8 m_cbus;
- devcb_write_line m_pck;
required_device<am25s558_device> m_mult_fa;
required_device<am25s558_device> m_mult_ga;
diff --git a/src/mame/video/dpb_storeaddr.cpp b/src/mame/video/dpb_storeaddr.cpp
new file mode 100644
index 00000000000..da9425d1d6b
--- /dev/null
+++ b/src/mame/video/dpb_storeaddr.cpp
@@ -0,0 +1,264 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+/***************************************************************************
+
+ dpb_storeaddr.cpp
+ DPB-7000/1 - Store Address Card
+
+***************************************************************************/
+
+#include "emu.h"
+#include "dpb_storeaddr.h"
+
+#define VERBOSE (1)
+#include "logmacro.h"
+
+/*****************************************************************************/
+
+DEFINE_DEVICE_TYPE(DPB7000_STOREADDR, dpb7000_storeaddr_card_device, "dpb_storeaddr", "Quantel DPB-7000 Store Address Card")
+
+
+//-------------------------------------------------
+// dpb7000_storeaddr_card_device - constructor
+//-------------------------------------------------
+
+dpb7000_storeaddr_card_device::dpb7000_storeaddr_card_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
+ : device_t(mconfig, DPB7000_STOREADDR, tag, owner, clock)
+ , m_rhscr(0)
+ , m_rvscr(0)
+ , m_rzoom(0)
+ , m_fld_sel(0)
+ , m_cxpos(0)
+ , m_cypos(0)
+ , m_s_type(0)
+ , m_cen(false)
+ , m_cxd(false)
+ , m_cxen(false)
+ , m_cxld(false)
+ , m_cxck(false)
+ , m_cxod(false)
+ , m_cxoen(false)
+ , m_cyd(false)
+ , m_cyen(false)
+ , m_cyld(false)
+ , m_cyck(false)
+ , m_cyod(false)
+ , m_cyoen(false)
+ , m_clrc(false)
+ , m_selvideo(false)
+ , m_creq(false)
+ , m_cread(false)
+{
+}
+
+ROM_START( dpb7000_storeaddr )
+ ROM_REGION(0xc00, "x_prom", 0)
+ ROM_LOAD("pb-032-17425b-bbb.bin", 0x000, 0x400, CRC(2051a6e4) SHA1(3bd8a9015e77b034a94fe072a9753649b76f9f69))
+ ROM_LOAD("pb-032-17425b-bcb.bin", 0x400, 0x400, CRC(01aaa6f7) SHA1(e31bff0c68f74996368443bfb58a3524a838f270))
+ ROM_LOAD("pb-032-17425b-bdb.bin", 0x800, 0x400, CRC(20e2fb9e) SHA1(c4c77ec02ab6d3a1a28edf5543e57235a64a9d8d))
+
+ ROM_REGION(0xc00, "protx_prom", 0)
+ ROM_LOAD("pb-032-17425b-deb.bin", 0x000, 0x400, CRC(faeb44dd) SHA1(3eaf981245824332d216e97095bdc02ff04e4800))
+
+ ROM_REGION(0xc00, "proty_prom", 0)
+ ROM_LOAD("pb-032-17425b-edb.bin", 0x000, 0x400, CRC(183bfdc0) SHA1(175b052948e4e4a9421d8913479e7531b7e5f03c))
+
+ ROM_REGION(0x10000, "blanking_pal", 0)
+ ROM_LOAD("pb-032-17425b-igb.bin", 0x00000, 0x10000, CRC(cdd80590) SHA1(fecb64695b61e8ec740af1480240088d5447688d))
+ROM_END
+
+const tiny_rom_entry *dpb7000_storeaddr_card_device::device_rom_region() const
+{
+ return ROM_NAME( dpb7000_storeaddr );
+}
+
+void dpb7000_storeaddr_card_device::device_start()
+{
+ save_item(NAME(m_rhscr));
+ save_item(NAME(m_rvscr));
+ save_item(NAME(m_rzoom));
+ save_item(NAME(m_fld_sel));
+ save_item(NAME(m_cxpos));
+ save_item(NAME(m_cypos));
+
+ save_item(NAME(m_s_type));
+
+ save_item(NAME(m_cen));
+
+ save_item(NAME(m_cxd));
+ save_item(NAME(m_cxen));
+ save_item(NAME(m_cxld));
+ save_item(NAME(m_cxck));
+ save_item(NAME(m_cxod));
+ save_item(NAME(m_cxoen));
+
+ save_item(NAME(m_cyd));
+ save_item(NAME(m_cyen));
+ save_item(NAME(m_cyld));
+ save_item(NAME(m_cyck));
+ save_item(NAME(m_cyod));
+ save_item(NAME(m_cyoen));
+
+ save_item(NAME(m_clrc));
+ save_item(NAME(m_selvideo));
+ save_item(NAME(m_creq));
+ save_item(NAME(m_cread));
+}
+
+void dpb7000_storeaddr_card_device::device_reset()
+{
+ m_rhscr = 0;
+ m_rvscr = 0;
+ m_rzoom = 0;
+ m_fld_sel = 0;
+ m_cxpos = 0;
+ m_cypos = 0;
+
+ m_s_type = 0;
+
+ m_cen = false;
+
+ m_cxd = false;
+ m_cxen = false;
+ m_cxld = false;
+ m_cxck = false;
+ m_cxod = false;
+ m_cxoen = false;
+
+ m_cyd = false;
+ m_cyen = false;
+ m_cyld = false;
+ m_cyck = false;
+ m_cyod = false;
+ m_cyoen = false;
+
+ m_clrc = false;
+ m_selvideo = false;
+ m_creq = false;
+ m_cread = false;
+}
+
+void dpb7000_storeaddr_card_device::reg_w(uint16_t data)
+{
+ switch ((data >> 12) & 7)
+ {
+ case 0:
+ LOG("%s: Store Address Card %d, set RHSCR: %03x\n", machine().describe_context(), m_s_type, data & 0xfff);
+ m_rhscr = data & 0xfff;
+ break;
+ case 1:
+ LOG("%s: Store Address Card %d, set RVSCR: %03x\n", machine().describe_context(), m_s_type, data & 0xfff);
+ m_rvscr = data & 0xfff;
+ break;
+ case 2:
+ LOG("%s: Store Address Card %d, set R ZOOM: %03x\n", machine().describe_context(), m_s_type, data & 0xfff);
+ m_rzoom = data & 0xfff;
+ break;
+ case 3:
+ LOG("%s: Store Address Card %d, set FLDSEL: %03x\n", machine().describe_context(), m_s_type, data & 0xfff);
+ m_fld_sel = data & 0xfff;
+ break;
+ case 4:
+ LOG("%s: Store Address Card %d, set CXPOS: %03x\n", machine().describe_context(), m_s_type, data & 0xfff);
+ m_cxpos = data & 0xfff;
+ break;
+ case 5:
+ LOG("%s: Store Address Card %d, set CYPOS: %03x\n", machine().describe_context(), m_s_type, data & 0xfff);
+ m_cypos = data & 0xfff;
+ break;
+ default:
+ LOG("%s: Store Address Card %d, unknown register: %04x\n", machine().describe_context(), m_s_type, data);
+ break;
+ }
+}
+
+void dpb7000_storeaddr_card_device::s_type_w(int state)
+{
+ m_s_type = state ? 2 : 1;
+}
+
+void dpb7000_storeaddr_card_device::cen_w(int state)
+{
+ m_cen = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cxd_w(int state)
+{
+ m_cxd = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cxen_w(int state)
+{
+ m_cxen = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cxld_w(int state)
+{
+ m_cxld = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cxck_w(int state)
+{
+ m_cxck = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cxod_w(int state)
+{
+ m_cxod = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cxoen_w(int state)
+{
+ m_cxoen = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cyd_w(int state)
+{
+ m_cyd = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cyen_w(int state)
+{
+ m_cyen = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cyld_w(int state)
+{
+ m_cyld = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cyck_w(int state)
+{
+ m_cyck = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cyod_w(int state)
+{
+ m_cyod = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cyoen_w(int state)
+{
+ m_cyoen = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::clrc_w(int state)
+{
+ m_clrc = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::selvideo_w(int state)
+{
+ m_selvideo = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::creq_w(int state)
+{
+ m_creq = (bool)state;
+}
+
+void dpb7000_storeaddr_card_device::cr_w(int state)
+{
+ m_cread = (bool)state;
+}
+
diff --git a/src/mame/video/dpb_storeaddr.h b/src/mame/video/dpb_storeaddr.h
new file mode 100644
index 00000000000..ad3b4c9e3bb
--- /dev/null
+++ b/src/mame/video/dpb_storeaddr.h
@@ -0,0 +1,91 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+/***************************************************************************
+
+ dpb_storeaddr.h
+ DPB-7000/1 - Store Address Card
+
+***************************************************************************/
+
+#ifndef MAME_VIDEO_DPB_STOREADDR_H
+#define MAME_VIDEO_DPB_STOREADDR_H
+
+#pragma once
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> dpb7000_storeaddr_card_device
+
+class dpb7000_storeaddr_card_device : public device_t
+{
+public:
+ // construction/destruction
+ dpb7000_storeaddr_card_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+
+ void reg_w(uint16_t data);
+ void s_type_w(int state);
+ void cen_w(int state);
+
+ void cxd_w(int state);
+ void cxen_w(int state);
+ void cxld_w(int state);
+ void cxck_w(int state);
+ void cxod_w(int state);
+ void cxoen_w(int state);
+
+ void cyd_w(int state);
+ void cyen_w(int state);
+ void cyld_w(int state);
+ void cyck_w(int state);
+ void cyod_w(int state);
+ void cyoen_w(int state);
+
+ void clrc_w(int state);
+ void selvideo_w(int state);
+ void creq_w(int state);
+ void cr_w(int state);
+
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+ virtual void device_reset() override;
+ virtual const tiny_rom_entry *device_rom_region() const override;
+
+ uint16_t m_rhscr;
+ uint16_t m_rvscr;
+ uint16_t m_rzoom;
+ uint16_t m_fld_sel;
+ uint16_t m_cxpos;
+ uint16_t m_cypos;
+
+ int m_s_type;
+
+ bool m_cen;
+
+ bool m_cxd;
+ bool m_cxen;
+ bool m_cxld;
+ bool m_cxck;
+ bool m_cxod;
+ bool m_cxoen;
+
+ bool m_cyd;
+ bool m_cyen;
+ bool m_cyld;
+ bool m_cyck;
+ bool m_cyod;
+ bool m_cyoen;
+
+ bool m_clrc;
+ bool m_selvideo;
+ bool m_creq;
+ bool m_cread;
+};
+
+// device type definition
+DECLARE_DEVICE_TYPE(DPB7000_STOREADDR, dpb7000_storeaddr_card_device)
+
+#endif // MAME_VIDEO_DPB_STOREADDR_H