summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/compis/hrg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/compis/hrg.cpp')
-rw-r--r--src/devices/bus/compis/hrg.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/bus/compis/hrg.cpp b/src/devices/bus/compis/hrg.cpp
index 7aa8aa72f7e..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,11 +51,11 @@ void compis_uhrg_device::uhrg_map(address_map &map)
UPD7220_DISPLAY_PIXELS_MEMBER( compis_hrg_device::display_pixels )
{
- uint16_t i,gfx = m_video_ram[(address & 0x7fff) >> 1];
- const pen_t *pen = m_palette->pens();
+ uint16_t const gfx = m_video_ram[(address & 0x3fff)];
+ pen_t const *const pen = m_palette->pens();
- for(i=0; i<16; i++)
- bitmap.pix32(y, x + i) = pen[BIT(gfx, i)];
+ for(uint16_t i=0; i<16; i++)
+ bitmap.pix(y, x + i) = pen[BIT(gfx, i)];
}
@@ -65,11 +65,11 @@ UPD7220_DISPLAY_PIXELS_MEMBER( compis_hrg_device::display_pixels )
UPD7220_DISPLAY_PIXELS_MEMBER( compis_uhrg_device::display_pixels )
{
- uint16_t i,gfx = m_video_ram[(address & 0x1ffff) >> 1];
- const pen_t *pen = m_palette->pens();
+ uint16_t const gfx = m_video_ram[(address & 0xffff)];
+ pen_t const *const pen = m_palette->pens();
- for(i=0; i<16; i++)
- bitmap.pix32(y, x + i) = pen[BIT(gfx, i)];
+ for(uint16_t i=0; i<16; i++)
+ bitmap.pix(y, x + i) = pen[BIT(gfx, i)];
}