summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/bbc/rom/pal.h
diff options
context:
space:
mode:
author Nigel Barnes <Pernod70@users.noreply.github.com>2019-01-16 20:03:48 +0000
committer Nigel Barnes <Pernod70@users.noreply.github.com>2019-01-16 20:05:03 +0000
commit01ef9a6a44963ae33bee5a45c2f3e4838acc9c5d (patch)
treec410f9c568631a1af7a7fa649c21a5c9b90f93ed /src/devices/bus/bbc/rom/pal.h
parenta143090d103584a1aedcb2939f1db740d10ff935 (diff)
bbc: Re-implemented ROM slots to be able to handle non-standard ROM devices, and added support for:
- 32K ROM slots in B+ and Master series. - PALPROM carrier boards from Computer Concepts, Watford Electronics, etc. - Real Time Clock ROM devices from Solidisk and PMS. - UserRAM sideways RAM from Acorn User. - MRM E00 DFS.
Diffstat (limited to 'src/devices/bus/bbc/rom/pal.h')
-rw-r--r--src/devices/bus/bbc/rom/pal.h167
1 files changed, 167 insertions, 0 deletions
diff --git a/src/devices/bus/bbc/rom/pal.h b/src/devices/bus/bbc/rom/pal.h
new file mode 100644
index 00000000000..32dd8a23b85
--- /dev/null
+++ b/src/devices/bus/bbc/rom/pal.h
@@ -0,0 +1,167 @@
+// license:BSD-3-Clause
+// copyright-holders:Nigel Barnes
+/***************************************************************************
+
+ BBC Micro PALPROM carrier boards
+
+***************************************************************************/
+
+#ifndef MAME_BUS_BBC_ROM_PAL_H
+#define MAME_BUS_BBC_ROM_PAL_H
+
+#pragma once
+
+#include "slot.h"
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> bbc_pal_device
+
+class bbc_pal_device : public device_t,
+ public device_bbc_rom_interface
+{
+protected:
+ // construction/destruction
+ bbc_pal_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+
+ // device-level overrides
+ virtual void device_start() override;
+
+ // device_bbc_rom_interface overrides
+ virtual uint32_t get_rom_size() override { return 0x4000; }
+
+ uint8_t m_bank;
+};
+
+// ======================> bbc_cciword_device
+
+class bbc_cciword_device : public bbc_pal_device
+{
+public:
+ // construction/destruction
+ bbc_cciword_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device_bbc_rom_interface overrides
+ virtual DECLARE_READ8_MEMBER(read) override;
+};
+
+// ======================> bbc_ccibase_device
+
+class bbc_ccibase_device : public bbc_pal_device
+{
+public:
+ // construction/destruction
+ bbc_ccibase_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device_bbc_rom_interface overrides
+ virtual DECLARE_READ8_MEMBER(read) override;
+};
+
+// ======================> bbc_ccispell_device
+
+class bbc_ccispell_device : public bbc_pal_device
+{
+public:
+ // construction/destruction
+ bbc_ccispell_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device_bbc_rom_interface overrides
+ virtual DECLARE_READ8_MEMBER(read) override;
+};
+
+// ======================> bbc_palqst_device
+
+class bbc_palqst_device : public bbc_pal_device
+{
+public:
+ bbc_palqst_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device_bbc_rom_interface overrides
+ virtual DECLARE_READ8_MEMBER(read) override;
+};
+
+// ======================> bbc_palwap_device
+
+class bbc_palwap_device : public bbc_pal_device
+{
+public:
+ bbc_palwap_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device_bbc_rom_interface overrides
+ virtual DECLARE_READ8_MEMBER(read) override;
+};
+
+// ======================> bbc_palted_device
+
+class bbc_palted_device : public bbc_pal_device
+{
+public:
+ // construction/destruction
+ bbc_palted_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device_bbc_rom_interface overrides
+ virtual DECLARE_READ8_MEMBER(read) override;
+};
+
+// ======================> bbc_palabep_device
+
+class bbc_palabep_device : public bbc_pal_device
+{
+public:
+ // construction/destruction
+ bbc_palabep_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device_bbc_rom_interface overrides
+ virtual DECLARE_READ8_MEMBER(read) override;
+};
+
+// ======================> bbc_palabe_device
+
+class bbc_palabe_device : public bbc_pal_device
+{
+public:
+ // construction/destruction
+ bbc_palabe_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device_bbc_rom_interface overrides
+ virtual DECLARE_READ8_MEMBER(read) override;
+};
+
+// ======================> bbc_palmo2_device
+
+class bbc_palmo2_device : public bbc_pal_device
+{
+public:
+ // construction/destruction
+ bbc_palmo2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device_bbc_rom_interface overrides
+ virtual DECLARE_READ8_MEMBER(read) override;
+};
+
+
+// device type definition
+DECLARE_DEVICE_TYPE(BBC_CCIWORD, bbc_cciword_device)
+DECLARE_DEVICE_TYPE(BBC_CCIBASE, bbc_ccibase_device)
+DECLARE_DEVICE_TYPE(BBC_CCISPELL, bbc_ccispell_device)
+DECLARE_DEVICE_TYPE(BBC_PALQST, bbc_palqst_device)
+DECLARE_DEVICE_TYPE(BBC_PALWAP, bbc_palwap_device)
+DECLARE_DEVICE_TYPE(BBC_PALTED, bbc_palted_device)
+DECLARE_DEVICE_TYPE(BBC_PALABEP, bbc_palabep_device)
+DECLARE_DEVICE_TYPE(BBC_PALABE, bbc_palabe_device)
+DECLARE_DEVICE_TYPE(BBC_PALMO2, bbc_palmo2_device)
+
+
+#endif // MAME_BUS_BBC_ROM_PAL_H