diff options
Diffstat (limited to 'src/devices/bus')
-rw-r--r-- | src/devices/bus/compis/hrg.cpp | 12 | ||||
-rw-r--r-- | src/devices/bus/isa/num9rev.cpp | 6 |
2 files changed, 9 insertions, 9 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++) diff --git a/src/devices/bus/isa/num9rev.cpp b/src/devices/bus/isa/num9rev.cpp index 632eb8b544b..c7756b8294b 100644 --- a/src/devices/bus/isa/num9rev.cpp +++ b/src/devices/bus/isa/num9rev.cpp @@ -26,11 +26,11 @@ UPD7220_DISPLAY_PIXELS_MEMBER( isa8_number_9_rev_device::hgdc_display_pixels ) { rgb_t color(0); uint16_t overlay; - if(((address << 3) + 0xc0016) > (1024*1024)) + if(((address << 4) + 0xc0016) > (1024*1024)) return; for(int i = 0; i < 16; i++) { - uint32_t addr = (address << 3) + i; + uint32_t addr = (address << 4) + i; overlay = m_ram[addr + 0xc0000] << 1; overlay = m_overlay[overlay + ((m_mode & 8) ? 512 : 0)] | (m_overlay[overlay + 1 + ((m_mode & 8) ? 512 : 0)] << 8); color.set_r(pal->entry_color(m_ram[addr] | ((overlay & 0xf) << 8)).r()); @@ -41,7 +41,7 @@ UPD7220_DISPLAY_PIXELS_MEMBER( isa8_number_9_rev_device::hgdc_display_pixels ) } else { - if(((address << 3) + 16) > (1024*1024)) + if(((address << 4) + 16) > (1024*1024)) return; for(int i = 0; i < 16; i++) bitmap.pix(y, x + i) = pal->entry_color(m_ram[(address << 4) + i]); |