summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/compis/hrg.cpp
diff options
context:
space:
mode:
author Brian Johnson <brijohn@gmail.com>2021-08-04 13:15:12 -0400
committer GitHub <noreply@github.com>2021-08-05 03:15:12 +1000
commit57e4628edcda9ae3bec250e4cb2a1887affb2cc8 (patch)
treebb73797f224f2f022b5fe3d1845da8a2e7dcf780 /src/devices/bus/compis/hrg.cpp
parent745206964cc3b33cd6afd1cad4acc24c17f5f3a7 (diff)
video/upd7220.cpp: Made address space use word addressing, and implemented proper ead/dad/mask support for draw_char. (#8379)
Diffstat (limited to 'src/devices/bus/compis/hrg.cpp')
-rw-r--r--src/devices/bus/compis/hrg.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/compis/hrg.cpp b/src/devices/bus/compis/hrg.cpp
index 1612729e706..9fcd130bec0 100644
--- a/src/devices/bus/compis/hrg.cpp
+++ b/src/devices/bus/compis/hrg.cpp
@@ -34,14 +34,14 @@ DEFINE_DEVICE_TYPE(COMPIS_UHRG, compis_uhrg_device, "compis_uhrg", "Compis UHRG"
void compis_hrg_device::hrg_map(address_map &map)
{
- map.global_mask(0x7fff);
- map(0x00000, 0x7fff).ram().share("video_ram");
+ map.global_mask(0x3fff);
+ map(0x00000, 0x3fff).ram().share("video_ram");
}
void compis_uhrg_device::uhrg_map(address_map &map)
{
- map.global_mask(0x1ffff);
- map(0x00000, 0x1ffff).ram().share("video_ram");
+ map.global_mask(0xffff);
+ map(0x00000, 0xffff).ram().share("video_ram");
}
@@ -51,7 +51,7 @@ void compis_uhrg_device::uhrg_map(address_map &map)
UPD7220_DISPLAY_PIXELS_MEMBER( compis_hrg_device::display_pixels )
{
- uint16_t const gfx = m_video_ram[(address & 0x7fff) >> 1];
+ uint16_t const gfx = m_video_ram[(address & 0x3fff)];
pen_t const *const pen = m_palette->pens();
for(uint16_t i=0; i<16; i++)
@@ -65,7 +65,7 @@ UPD7220_DISPLAY_PIXELS_MEMBER( compis_hrg_device::display_pixels )
UPD7220_DISPLAY_PIXELS_MEMBER( compis_uhrg_device::display_pixels )
{
- uint16_t const gfx = m_video_ram[(address & 0x1ffff) >> 1];
+ uint16_t const gfx = m_video_ram[(address & 0xffff)];
pen_t const *const pen = m_palette->pens();
for(uint16_t i=0; i<16; i++)