summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/video
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2015-09-13 20:48:27 -0500
committer cracyc <cracyc@users.noreply.github.com>2015-09-13 20:48:27 -0500
commit13f3f78103e039428c0ba0d3d7192968f3a5c817 (patch)
treeaf32230741930c8280fc400d3a8159a31f222daa /src/mess/video
parent9bfb44b096b259d2598a49ad5cc1995909083e88 (diff)
pcd: make scsi work (nw)
Diffstat (limited to 'src/mess/video')
-rw-r--r--src/mess/video/pcd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mess/video/pcd.c b/src/mess/video/pcd.c
index 3979f663a40..991a646b2c7 100644
--- a/src/mess/video/pcd.c
+++ b/src/mess/video/pcd.c
@@ -112,6 +112,7 @@ static ADDRESS_MAP_START( pcx_vid_io, AS_IO, 8, pcx_video_device )
AM_RANGE(0xa000, 0xa001) AM_READWRITE(vram_latch_r, vram_latch_w)
AM_RANGE(0xa002, 0xa003) AM_READWRITE(term_mcu_r, term_mcu_w)
AM_RANGE(0xc000, 0xc7ff) AM_RAM
+ AM_RANGE(MCS51_PORT_P1, MCS51_PORT_P1) AM_NOP // revisit this
ADDRESS_MAP_END
static ADDRESS_MAP_START( pcx_vram, AS_0, 8, pcx_video_device )
@@ -300,8 +301,6 @@ READ8_MEMBER(pcx_video_device::unk_r)
void pcd_video_device::device_start()
{
- m_maincpu->space(AS_IO).install_write_handler(0xf9a0, 0xf9a1, 0, 0, write8_delegate(FUNC(pcd_video_device::vram_sw_w), this), 0x00ff);
- m_maincpu->space(AS_IO).install_readwrite_handler(0xf9b0, 0xf9b3, 0, 0, read8_delegate(FUNC(pcd_video_device::mcu_r), this), write8_delegate(FUNC(pcd_video_device::mcu_w), this), 0x00ff);
m_maincpu->space(AS_IO).install_readwrite_handler(0xfb00, 0xfb01, 0, 0, read8_delegate(FUNC(pcdx_video_device::detect_r), this), write8_delegate(FUNC(pcdx_video_device::detect_w), this), 0xff00);
m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0xf0000, 0xf7fff, 0, 0, read8_delegate(FUNC(pcd_video_device::vram_r), this), write8_delegate(FUNC(pcd_video_device::vram_w), this), 0xffff);
m_gfxdecode->set_gfx(0, global_alloc(gfx_element(machine().device<palette_device>("palette"), pcd_charlayout, &m_charram[0], 0, 1, 0)));
@@ -312,10 +311,11 @@ void pcd_video_device::device_reset()
m_vram_sw = 1;
}
-
DEVICE_ADDRESS_MAP_START(map, 16, pcd_video_device)
- AM_RANGE(0x0, 0xf) AM_DEVWRITE8("crtc", scn2674_device, write, 0x00ff)
- AM_RANGE(0x0, 0xf) AM_DEVREAD8("crtc", scn2674_device, read, 0xff00)
+ AM_RANGE(0x00, 0x0f) AM_DEVWRITE8("crtc", scn2674_device, write, 0x00ff)
+ AM_RANGE(0x00, 0x0f) AM_DEVREAD8("crtc", scn2674_device, read, 0xff00)
+ AM_RANGE(0x20, 0x21) AM_WRITE8(vram_sw_w, 0x00ff)
+ AM_RANGE(0x30, 0x33) AM_READWRITE8(mcu_r, mcu_w, 0x00ff)
ADDRESS_MAP_END
void pcx_video_device::device_start()