diff options
Diffstat (limited to 'src/devices/bus/bbc/1mhzbus/autoprom.h')
-rw-r--r-- | src/devices/bus/bbc/1mhzbus/autoprom.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/devices/bus/bbc/1mhzbus/autoprom.h b/src/devices/bus/bbc/1mhzbus/autoprom.h new file mode 100644 index 00000000000..358b5819f2b --- /dev/null +++ b/src/devices/bus/bbc/1mhzbus/autoprom.h @@ -0,0 +1,55 @@ +// license:BSD-3-Clause +// copyright-holders:Nigel Barnes +/********************************************************************** + + ATPL AutoPrommer - Eprom Programmer with Auto-Run + +**********************************************************************/ + + +#ifndef MAME_BUS_BBC_1MHZBUS_AUTOPROM_H +#define MAME_BUS_BBC_1MHZBUS_AUTOPROM_H + +#include "1mhzbus.h" + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +class bbc_autoprom_device : + public device_t, + public device_bbc_1mhzbus_interface +{ +public: + // construction/destruction + bbc_autoprom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + +protected: + // device-level overrides + virtual void device_start() override; + virtual void device_reset() override; + + // optional information overrides + virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override; + virtual ioport_constructor device_input_ports() const override; + + virtual uint8_t fred_r(offs_t offset) override; + virtual void fred_w(offs_t offset, uint8_t data) override; + virtual uint8_t jim_r(offs_t offset) override; + +private: + required_memory_region m_autorun; + required_ioport m_boot; + + uint16_t m_rom_offset; + uint8_t m_unk_c0; +}; + + +// device type definition +DECLARE_DEVICE_TYPE(BBC_AUTOPROM, bbc_autoprom_device) + + +#endif // MAME_BUS_BBC_1MHZBUS_AUTOPROM_H |