summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author fulivi <fulivi@users.noreply.github.com>2017-07-08 11:31:42 +0200
committer Vas Crabb <cuavas@users.noreply.github.com>2017-07-08 19:31:42 +1000
commit5201a7f6bf1baf7e697b46b1292faaed5d850992 (patch)
tree0748d90f27b6e77f2479416dd9f843241258d841 /scripts
parent8b542ca5bd4127784ccce7f6f85b69c72b39f959 (diff)
Begin of HP80 emulation (#2448)
What works: * HP85A machine with 16K of RAM * Capricorn CPU works * Keyboard works (with minor issues) * CRT text / graphics modes work (correct speed is not emulated yet so service ROM complaints) * BASIC is usable What is missing (and I'll have hopefully working soon): * HW timers * Beeper * Integral printer * DC100 cassette drive * Extension ROMs * I/O modules (especially the HPIB interface so that we can hook up floppy drives) * Other models in the family (e.g. HP86)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/src/cpu.lua16
-rw-r--r--scripts/target/mame/mess.lua2
2 files changed, 18 insertions, 0 deletions
diff --git a/scripts/src/cpu.lua b/scripts/src/cpu.lua
index d74a7100140..0dbe227083c 100644
--- a/scripts/src/cpu.lua
+++ b/scripts/src/cpu.lua
@@ -720,6 +720,22 @@ if (CPUS["NANOPROCESSOR"]~=null or _OPTIONS["with-tools"]) then
end
--------------------------------------------------
+-- HP Capricorn
+--@src/devices/cpu/capricorn/capricorn.h,CPUS["CAPRICORN"] = true
+--------------------------------------------------
+
+if (CPUS["CAPRICORN"]~=null) then
+ files {
+ MAME_DIR .. "src/devices/cpu/capricorn/capricorn.cpp",
+ MAME_DIR .. "src/devices/cpu/capricorn/capricorn.h",
+ }
+end
+
+if (CPUS["CAPRICORN"]~=null or _OPTIONS["with-tools"]) then
+ table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/capricorn/capricorn_dasm.cpp")
+end
+
+--------------------------------------------------
-- Hudsonsoft 6280
--@src/devices/cpu/h6280/h6280.h,CPUS["H6280"] = true
--------------------------------------------------
diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua
index 74c73c806b5..78a388d032e 100644
--- a/scripts/target/mame/mess.lua
+++ b/scripts/target/mame/mess.lua
@@ -135,6 +135,7 @@ CPUS["SM510"] = true
CPUS["MB86901"] = true
CPUS["NANOPROCESSOR"] = true
CPUS["CLIPPER"] = true
+CPUS["CAPRICORN"] = true
--------------------------------------------------
-- specify available sound cores; some of these are
@@ -2085,6 +2086,7 @@ files {
MAME_DIR .. "src/mame/drivers/hp9k_3xx.cpp",
MAME_DIR .. "src/mame/drivers/hp64k.cpp",
MAME_DIR .. "src/mame/drivers/hp_ipc.cpp",
+ MAME_DIR .. "src/mame/drivers/hp80.cpp",
}
createMESSProjects(_target, _subtarget, "hec2hrp")