summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2021-07-22 23:49:34 +1000
committer Robbbert <Robbbert@users.noreply.github.com>2021-07-22 23:49:34 +1000
commit23f41acb325467961e34882cf1007f341de05fd9 (patch)
treecad380732496e4395e0441588f8176a8d7c69633
parent7fe01c8ff0dbf5c6c2539dc000b8ee9a498cd221 (diff)
New working software list additions
----------------------------------- apexc_cyl: Hello World 1, Hello World 2, Hello World 3 [Robbbert]
-rw-r--r--hash/apexc_cyl.xml48
-rw-r--r--src/mame/drivers/apexc.cpp6
-rw-r--r--src/mame/includes/apexc.h1
-rw-r--r--src/mame/machine/apexc.cpp4
-rw-r--r--src/mame/machine/apexc.h7
5 files changed, 60 insertions, 6 deletions
diff --git a/hash/apexc_cyl.xml b/hash/apexc_cyl.xml
new file mode 100644
index 00000000000..425caec61ee
--- /dev/null
+++ b/hash/apexc_cyl.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!DOCTYPE softwarelist SYSTEM "softwarelist.dtd">
+<!--
+license:CC0
+
+These Hello World tests are the only known software. It is thought
+that they were written by Raphael Nabet while developing the driver.
+
+-->
+<softwarelist name="apexc_cyl" description="APEXC Cylinder images">
+
+ <software name="hello1">
+ <description>Hello World 1</description>
+ <year>2001</year>
+ <publisher>Raphael Nabet</publisher>
+ <info name="usage" value="Hit Enter" />
+ <part name="cyl" interface="apexc_cyl">
+ <dataarea name="cyl" size="0x01c0">
+ <rom name="helloworld1.apc" size="0x01c0" crc="6ae5de89" sha1="80ae963a5a4018e8f726a2bdbfdaf7d7252980da"/>
+ </dataarea>
+ </part>
+ </software>
+
+ <software name="hello2">
+ <description>Hello World 2</description>
+ <year>2001</year>
+ <publisher>Raphael Nabet</publisher>
+ <info name="usage" value="Hit Enter" />
+ <part name="cyl" interface="apexc_cyl">
+ <dataarea name="cyl" size="0x01c0">
+ <rom name="helloworld2.apc" size="0x01c0" crc="3cea42e3" sha1="60d40af565d21a0c7b1a3557e99efa2b6f5b4e8e"/>
+ </dataarea>
+ </part>
+ </software>
+
+ <software name="hello3">
+ <description>Hello World 3</description>
+ <year>2001</year>
+ <publisher>Raphael Nabet</publisher>
+ <info name="usage" value="Hit Enter" />
+ <part name="cyl" interface="apexc_cyl">
+ <dataarea name="cyl" size="0x1000">
+ <rom name="helloworld3.apc" size="0x1000" crc="389ad9d6" sha1="fb5eac01dfb0e372d3dced082f68a318bf14a6e5"/>
+ </dataarea>
+ </part>
+ </software>
+
+</softwarelist>
diff --git a/src/mame/drivers/apexc.cpp b/src/mame/drivers/apexc.cpp
index 04d0004e750..e16a3660312 100644
--- a/src/mame/drivers/apexc.cpp
+++ b/src/mame/drivers/apexc.cpp
@@ -1,11 +1,11 @@
// license:GPL-2.0+
// copyright-holders:Raphael Nabet, Robbbert
/*
- drivers/apexc.c : APEXC driver
+ drivers/apexc.cpp : APEXC driver
By Raphael Nabet
- see cpu/apexc.c for background and tech info
+ see cpu/apexc.cpp for background and tech info
*/
#include "emu.h"
@@ -384,6 +384,8 @@ void apexc_state::apexc(machine_config &config)
APEXC_CYLINDER(config, m_cylinder);
APEXC_TAPE_PUNCHER(config, m_tape_puncher);
APEXC_TAPE_READER(config, m_tape_reader);
+
+ SOFTWARE_LIST(config, "cyl_list").set_original("apexc_cyl");
}
ROM_START(apexc)
diff --git a/src/mame/includes/apexc.h b/src/mame/includes/apexc.h
index e57c59f91f2..b94c56afbaa 100644
--- a/src/mame/includes/apexc.h
+++ b/src/mame/includes/apexc.h
@@ -7,6 +7,7 @@
#include "cpu/apexc/apexc.h"
#include "machine/apexc.h"
+#include "softlist_dev.h"
#include "emupal.h"
#include "screen.h"
diff --git a/src/mame/machine/apexc.cpp b/src/mame/machine/apexc.cpp
index d8f2233ea02..f002b2ff7f1 100644
--- a/src/mame/machine/apexc.cpp
+++ b/src/mame/machine/apexc.cpp
@@ -1,11 +1,11 @@
// license:GPL-2.0+
// copyright-holders:Raphael Nabet, Robbbert
/*
- machine/apexc.c : APEXC machine
+ machine/apexc.cpp : APEXC machine
By Raphael Nabet
- see cpu/apexc.c for background and tech info
+ see cpu/apexc.cpp for background and tech info
*/
#include "emu.h"
diff --git a/src/mame/machine/apexc.h b/src/mame/machine/apexc.h
index c04a49a0b6c..9b11f185a7c 100644
--- a/src/mame/machine/apexc.h
+++ b/src/mame/machine/apexc.h
@@ -1,17 +1,18 @@
// license:GPL-2.0+
// copyright-holders:Raphael Nabet, Robbbert
/*
- machine/apexc.c : APEXC machine
+ machine/apexc.h : APEXC machine
By Raphael Nabet
- see cpu/apexc.c for background and tech info
+ see cpu/apexc.cpp for background and tech info
*/
#ifndef MAME_MACHINE_APEXC
#define MAME_MACHINE_APEXC
#pragma once
+#include "softlist_dev.h"
/*
@@ -43,6 +44,8 @@ public:
virtual image_init_result call_load() override;
virtual void call_unload() override;
+ virtual const char *image_interface() const noexcept override { return "apexc_cyl"; }
+ virtual const software_list_loader &get_software_list_loader() const override { return image_software_list_loader::instance(); }
private:
virtual void device_start() override { }