summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author angelosa <lordkale4@gmail.com>2025-12-25 12:37:52 +0100
committer angelosa <lordkale4@gmail.com>2025-12-25 12:38:28 +0100
commitc8e17acc9b0269eeff1c789f3723ecff386a93f0 (patch)
tree9fc01a67a1f2af2eefc71020d60ae2c754c93588
parentf4bfc5a423f48d48e809c01fc70a47c0c00d40a2 (diff)
video/huc6270.h: add AR readback
-rw-r--r--src/devices/video/huc6270.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/video/huc6270.h b/src/devices/video/huc6270.h
index 0e8bbd0f731..2cdc83bfa3a 100644
--- a/src/devices/video/huc6270.h
+++ b/src/devices/video/huc6270.h
@@ -35,6 +35,9 @@ public:
static const uint16_t HUC6270_SPRITE = 0x0100; // sprite colour information
static const uint16_t HUC6270_BACKGROUND = 0x0000; // background colour information
+ // pcfx can read AR thru some buffer latch
+ u8 get_ar(offs_t offset) { return m_register_index; }
+
protected:
// device-level overrides
virtual void device_start() override ATTR_COLD;