summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
authorGravatarGravatar cracyc <cracyc@users.noreply.github.com>2020-11-22 18:16:49 -0600
committerGravatarGravatar cracyc <cracyc@users.noreply.github.com>2020-11-22 18:16:49 -0600
commit5ed91a1857e55897dcba56233a6c69e0e1cb5a2d (patch)
tree88608f3b81c4e22b411558f2b2b32e73e17f4f77 /src/mame
parent58c8cba9b3b8fb44de201f1f22e20e94d192c293 (diff)
ibmpcjr: fix pcjr and pcjx
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/ibmpcjr.cpp2
-rwxr-xr-x[-rw-r--r--]src/mame/video/pc_t1t.cpp8
-rwxr-xr-x[-rw-r--r--]src/mame/video/pc_t1t.h1
3 files changed, 9 insertions, 2 deletions
diff --git a/src/mame/drivers/ibmpcjr.cpp b/src/mame/drivers/ibmpcjr.cpp
index 123d17e3c84..e2c57eed707 100644
--- a/src/mame/drivers/ibmpcjr.cpp
+++ b/src/mame/drivers/ibmpcjr.cpp
@@ -580,8 +580,8 @@ void pcjr_state::ibmpcjr_io(address_map &map)
void pcjr_state::ibmpcjx_map(address_map &map)
{
map.unmap_value_high();
- map(0x80000, 0xb7fff).rom().region("kanji", 0);
map(0x80000, 0x9ffff).ram().share("vram"); // TODO: remove this part of vram hack
+ map(0x80000, 0xb7fff).rom().region("kanji", 0);
map(0xb8000, 0xbffff).m("pcvideo_pcjr:vram", FUNC(address_map_bank_device::amap8));
map(0xd0000, 0xdffff).r(m_cart1, FUNC(generic_slot_device::read_rom));
map(0xe0000, 0xfffff).rom().region("bios", 0);
diff --git a/src/mame/video/pc_t1t.cpp b/src/mame/video/pc_t1t.cpp
index 28ec71c1fd4..f4785b0ed0b 100644..100755
--- a/src/mame/video/pc_t1t.cpp
+++ b/src/mame/video/pc_t1t.cpp
@@ -149,7 +149,7 @@ void pcvideo_pcjr_device::device_add_mconfig(machine_config &config)
m_mc6845->set_show_border_area(false);
m_mc6845->set_char_width(8);
m_mc6845->set_update_row_callback(FUNC(pcvideo_pcjr_device::crtc_update_row));
- m_mc6845->out_de_callback().set(FUNC(pc_t1t_device::t1000_de_changed));
+ m_mc6845->out_de_callback().set(FUNC(pcvideo_pcjr_device::de_changed));
m_mc6845->out_vsync_callback().set(FUNC(pcvideo_pcjr_device::pcjr_vsync_changed));
ADDRESS_MAP_BANK(config, m_vram).set_map(&pc_t1t_device::vram_map).set_options(ENDIANNESS_LITTLE, 8, 18, 0x4000);
@@ -989,6 +989,12 @@ uint8_t pc_t1t_device::read(offs_t offset)
WRITE_LINE_MEMBER( pc_t1t_device::t1000_de_changed )
{
+ m_display_enable = state ? 0 : 1;
+}
+
+
+WRITE_LINE_MEMBER( pcvideo_pcjr_device::de_changed )
+{
m_display_enable = state ? 1 : 0;
}
diff --git a/src/mame/video/pc_t1t.h b/src/mame/video/pc_t1t.h
index 78b2be4a617..a1484d0d05f 100644..100755
--- a/src/mame/video/pc_t1t.h
+++ b/src/mame/video/pc_t1t.h
@@ -127,6 +127,7 @@ public:
void write(offs_t offset, uint8_t data);
+ DECLARE_WRITE_LINE_MEMBER( de_changed );
MC6845_UPDATE_ROW( pcjx_text_update_row );
MC6845_UPDATE_ROW( pcjr_gfx_2bpp_high_update_row );