e9161: Add skeleton CRTC device; document SIO accesses (nw)

This commit is contained in:
AJR 2019-08-03 10:51:44 -04:00
parent 2225ba2181
commit 6a3e79f9a7
4 changed files with 20 additions and 0 deletions

View File

@ -41,6 +41,18 @@ if (VIDEOS["SEGA315_5313"]~=null) then
} }
end end
--------------------------------------------------
--
--@src/devices/video/am8052.h,VIDEOS["AM8052"] = true
--------------------------------------------------
if (VIDEOS["AM8052"]~=null) then
files {
MAME_DIR .. "src/devices/video/am8052.cpp",
MAME_DIR .. "src/devices/video/am8052.h",
}
end
-------------------------------------------------- --------------------------------------------------
-- --
--@src/devices/video/bufsprite.h,VIDEOS["BUFSPRITE"] = true --@src/devices/video/bufsprite.h,VIDEOS["BUFSPRITE"] = true

View File

@ -284,6 +284,7 @@ SOUNDS["LC7535"] = true
VIDEOS["SEGA315_5124"] = true VIDEOS["SEGA315_5124"] = true
VIDEOS["SEGA315_5313"] = true VIDEOS["SEGA315_5313"] = true
--VIDEOS["AM8052"] = true
VIDEOS["BUFSPRITE"] = true VIDEOS["BUFSPRITE"] = true
--VIDEOS["CDP1861"] = true --VIDEOS["CDP1861"] = true
--VIDEOS["CDP1862"] = true --VIDEOS["CDP1862"] = true

View File

@ -299,6 +299,7 @@ SOUNDS["SWP30"] = true
VIDEOS["SEGA315_5124"] = true VIDEOS["SEGA315_5124"] = true
VIDEOS["SEGA315_5313"] = true VIDEOS["SEGA315_5313"] = true
VIDEOS["AM8052"] = true
--VIDEOS["BUFSPRITE"] = true --VIDEOS["BUFSPRITE"] = true
VIDEOS["BT45X"] = true VIDEOS["BT45X"] = true
VIDEOS["BT459"] = true VIDEOS["BT459"] = true

View File

@ -12,6 +12,7 @@
#include "emu.h" #include "emu.h"
#include "cpu/m68000/m68000.h" #include "cpu/m68000/m68000.h"
#include "machine/hd63450.h" #include "machine/hd63450.h"
#include "video/am8052.h"
class e9161_state : public driver_device class e9161_state : public driver_device
@ -59,6 +60,9 @@ void e9161_state::mem_map(address_map &map)
map(0xc00000, 0xc03fff).rom().region("program", 0); map(0xc00000, 0xc03fff).rom().region("program", 0);
map(0xe00000, 0xe03fff).ram(); map(0xe00000, 0xe03fff).ram();
map(0xffe000, 0xffe03f).rw(m_dmac, FUNC(hd63450_device::read), FUNC(hd63450_device::write)); map(0xffe000, 0xffe03f).rw(m_dmac, FUNC(hd63450_device::read), FUNC(hd63450_device::write));
map(0xffe802, 0xffe803).w("crtc", FUNC(am8052_device::pointer_w));
map(0xffe804, 0xffe805).w("crtc", FUNC(am8052_device::data_w));
//map(0xfff600, 0xfff63f).rw("sio", FUNC(mk68564_device::read), FUNC(mk68564_device::write)).umask16(0x00ff);
} }
@ -72,6 +76,8 @@ void e9161_state::e9161(machine_config &config)
m_maincpu->set_addrmap(AS_PROGRAM, &e9161_state::mem_map); m_maincpu->set_addrmap(AS_PROGRAM, &e9161_state::mem_map);
HD63450(config, m_dmac, 8'000'000, m_maincpu); HD63450(config, m_dmac, 8'000'000, m_maincpu);
AM8052(config, "crtc", 8'000'000);
} }