Skip to content

Commit

Permalink
Replace uPD1771c high level emulation with a cpu core. (#13106)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
wilbertpol authored Dec 28, 2024
1 parent 07cc2cf commit 926b618
Show file tree
Hide file tree
Showing 9 changed files with 960 additions and 666 deletions.
3 changes: 1 addition & 2 deletions hash/scv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,10 @@ Information found at http://www.rhod.fr/yeno_epoch.html
</part>
</software>

<software name="starspdr" supported="partial">
<software name="starspdr">
<description>Star Speeder</description>
<year>1985</year>
<publisher>Epoch</publisher>
<notes>uPD1771 adpcm playback is not supported.</notes>
<part name="cart" interface="scv_cart">
<feature name="slot" value="rom64k"/>
<dataarea name="rom" size="0x10000">
Expand Down
7 changes: 7 additions & 0 deletions scripts/src/cpu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
12 changes: 0 additions & 12 deletions scripts/src/sound.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 926b618

Please sign in to comment.