From 926b6182b1a503657e63d2a4cf268b7b1f084b8b Mon Sep 17 00:00:00 2001 From: wilbertpol Date: Sat, 28 Dec 2024 02:58:48 +0000 Subject: Replace uPD1771c high level emulation with a cpu core. (#13106) * cpu/upd177x/upd177x.cpp: Add NEC uPD177x cpu core. * scv.xml: Promoted 1 item. Software list items promoted to working ------------------------------------------ Star Speeder * cpu/upd177x/upd177x.cpp: Remove a comment. * cpu/upd177x/upd177x.cpp: Remove callback on PA. * cpu/upd177x/upd177x.cpp: Update comment about setting m_pc to 1 during reset. * Add a different workaround for the sync issue between the 2 cpus in scv. * cpu/upd1771x/updf177x.cpp: Use little endian. * cpu/upd177x/upd177x.cpp: Include device tag in fatalerror messages. * epoch/scv.cpp: Update upd1771c rom region sizes. * nec/apc.cpp: Switch to upd177x_cpu_device. * epoch/scv.cpp: Add location to upd1771c rom name. * cpu/upd177x/upd177x.h: Remove 'overrides' comments. --- scripts/src/cpu.lua | 7 +++++++ scripts/src/sound.lua | 12 ------------ 2 files changed, 7 insertions(+), 12 deletions(-) (limited to 'scripts/src') diff --git a/scripts/src/cpu.lua b/scripts/src/cpu.lua index 8fb19efbf73..2598688fe97 100644 --- a/scripts/src/cpu.lua +++ b/scripts/src/cpu.lua @@ -3930,6 +3930,13 @@ end --@src/devices/cpu/upd177x/upd177x.h,CPUS["UPD177X"] = true -------------------------------------------------- +if CPUS["UPD177X"] then + files { + MAME_DIR .. "src/devices/cpu/upd177x/upd177x.cpp", + MAME_DIR .. "src/devices/cpu/upd177x/upd177x.h", + } +end + if opt_tool(CPUS, "UPD177X") then table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd177x/upd177xd.cpp") table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/upd177x/upd177xd.h") diff --git a/scripts/src/sound.lua b/scripts/src/sound.lua index c3f2f79f586..df21e945310 100644 --- a/scripts/src/sound.lua +++ b/scripts/src/sound.lua @@ -1424,18 +1424,6 @@ if (SOUNDS["AD1848"]~=null) then } end ---------------------------------------------------- --- UPD1771 ---@src/devices/sound/upd1771.h,SOUNDS["UPD1771"] = true ---------------------------------------------------- - -if (SOUNDS["UPD1771"]~=null) then - files { - MAME_DIR .. "src/devices/sound/upd1771.cpp", - MAME_DIR .. "src/devices/sound/upd1771.h", - } -end - --------------------------------------------------- -- GB_SOUND --@src/devices/sound/gb.h,SOUNDS["GB_SOUND"] = true -- cgit v1.2.3-70-g09d2