summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Erwin Jansen <pokowaka@users.noreply.github.com>2020-09-17 01:39:48 -0700
committer GitHub <noreply@github.com>2020-09-17 18:39:48 +1000
commit9a0c63f673d1e6b91e8abbf6e54729aad7e439e9 (patch)
tree6b547d13a36c6517412b2e8402f276f2d9283ce7 /scripts
parent8d7d01caef380b119fbd8653fa5ad23e0d592564 (diff)
Add MDCR support for P2000t (#7215)
This adds support for the mini digital cassette recorder that can be found inside a P2000t. This implementation is based on documentation that can be found in https://github.com/p2000t/documentation. In memory of NPM Jansen, who taught me all the magic of bits and bytes.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/src/formats.lua13
-rw-r--r--scripts/target/mame/mess.lua2
2 files changed, 15 insertions, 0 deletions
diff --git a/scripts/src/formats.lua b/scripts/src/formats.lua
index f88266bcd7c..de31770aaf1 100644
--- a/scripts/src/formats.lua
+++ b/scripts/src/formats.lua
@@ -1411,6 +1411,19 @@ end
--------------------------------------------------
--
+--@src/lib/formats/adam_cas.h,FORMATS["ADAM_CAS"] = true
+--------------------------------------------------
+
+if (FORMATS["P2000T_CAS"]~=null or _OPTIONS["with-tools"]) then
+ files {
+ MAME_DIR.. "src/lib/formats/p2000t_cas.cpp",
+ MAME_DIR.. "src/lib/formats/p2000t_cas.h",
+ }
+end
+
+
+--------------------------------------------------
+--
--@src/lib/formats/p6001_cas.h,FORMATS["P6001_CAS"] = true
--------------------------------------------------
diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua
index e01532fb463..1e016b307a3 100644
--- a/scripts/target/mame/mess.lua
+++ b/scripts/target/mame/mess.lua
@@ -883,6 +883,7 @@ BUSES["NSCSI"] = true
BUSES["NUBUS"] = true
BUSES["O2"] = true
BUSES["ORICEXT"] = true
+BUSES["P2000"] = true
BUSES["PASOPIA"] = true
BUSES["PC1512"] = true
BUSES["PCE"] = true
@@ -3225,6 +3226,7 @@ files {
MAME_DIR .. "src/mame/drivers/p2000t.cpp",
MAME_DIR .. "src/mame/includes/p2000t.h",
MAME_DIR .. "src/mame/machine/p2000t.cpp",
+ MAME_DIR .. "src/mame/machine/p2000t_mdcr.cpp",
MAME_DIR .. "src/mame/video/p2000t.cpp",
MAME_DIR .. "src/mame/drivers/vg5k.cpp",
}