mirror of
https://github.com/holub/mame
synced 2025-10-05 00:38:58 +03:00

- Added Slogger Plus 2 Expansion, Acorn Tube Interface and P.R.E.S. Advanced Plus 5 cartridge devices. - Use derived 16Mhz clock on expansion bus and cartridge slots. - Removed MCFG and added devcb3 in expansion and cartridge devices.
57 lines
1.7 KiB
C++
57 lines
1.7 KiB
C++
// license:BSD-3-Clause
|
|
// copyright-holders:Nigel Barnes
|
|
/***************************************************************************
|
|
|
|
Slogger Click cartridge emulation
|
|
|
|
http://chrisacorns.computinghistory.org.uk/8bit_Upgrades/Slogger_Click.html
|
|
|
|
***************************************************************************/
|
|
|
|
#ifndef MAME_BUS_ELECTRON_CART_CLICK_H
|
|
#define MAME_BUS_ELECTRON_CART_CLICK_H
|
|
|
|
#pragma once
|
|
|
|
#include "slot.h"
|
|
#include "machine/mc146818.h"
|
|
|
|
|
|
//**************************************************************************
|
|
// TYPE DEFINITIONS
|
|
//**************************************************************************
|
|
|
|
// ======================> electron_click_device
|
|
|
|
class electron_click_device : public device_t,
|
|
public device_electron_cart_interface
|
|
{
|
|
public:
|
|
// construction/destruction
|
|
electron_click_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
|
|
|
DECLARE_INPUT_CHANGED_MEMBER(click_button);
|
|
|
|
protected:
|
|
// device-level overrides
|
|
virtual void device_add_mconfig(machine_config &config) override;
|
|
virtual ioport_constructor device_input_ports() const override;
|
|
|
|
virtual void device_start() override;
|
|
virtual void device_reset() override;
|
|
|
|
// electron_cart_interface overrides
|
|
virtual uint8_t read(address_space &space, offs_t offset, int infc, int infd, int romqa, int oe, int oe2) override;
|
|
virtual void write(address_space &space, offs_t offset, uint8_t data, int infc, int infd, int romqa, int oe, int oe2) override;
|
|
|
|
private:
|
|
required_device<mc146818_device> m_rtc;
|
|
|
|
uint8_t m_page_register;
|
|
};
|
|
|
|
// device type definition
|
|
DECLARE_DEVICE_TYPE(ELECTRON_CLICK, electron_click_device)
|
|
|
|
#endif // MAME_BUS_ELECTRON_CART_CLICK_H
|