summaryrefslogblamecommitdiffstatshomepage
path: root/src/mame/machine/deco222.h
blob: 042e2bbbd9888335517a1411b9a69c0e681ff7df (plain) (tree)
1
2
3
4

                                  

                











                                                                                                       
                                                    






                                    













                                                                                                          
                                                    







                                                                           
// license:BSD-3-Clause
// copyright-holders:David Haywood

#include "emu.h"
#include "cpu/m6502/m6502.h"

class deco_222_device : public m6502_device {
public:
	deco_222_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);

protected:
	class mi_decrypt : public mi_default_normal {
	public:
		bool had_written;

		virtual ~mi_decrypt() {}
		virtual UINT8 read_sync(UINT16 adr);
	};

	virtual void device_start();
	virtual void device_reset();

};

static const device_type DECO_222 = &device_creator<deco_222_device>;



class deco_c10707_device : public m6502_device {
public:
	deco_c10707_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);

protected:
	class mi_decrypt : public mi_default_normal {
	public:
		bool had_written;

		virtual ~mi_decrypt() {}
		virtual UINT8 read_sync(UINT16 adr);
	};

	virtual void device_start();
	virtual void device_reset();

};

static const device_type DECO_C10707 = &device_creator<deco_c10707_device>;