summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/melps4/m58846.h
blob: 72d8253dd2367fdcaf9d40c4bcfdc09eeefd0c97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// license:BSD-3-Clause
// copyright-holders:hap
/*

  Mitsubishi M58846 MCU

*/

#ifndef _M58846_H_
#define _M58846_H_

#include "melps4.h"

// note: for pinout and more info, see melps4.h


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

protected:
	// device-level overrides
	virtual void device_start();
	virtual void device_reset();

	// device_execute_interface overrides
	virtual void execute_one();

	// device_disasm_interface overrides
	virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options);

	// timers
	virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
	virtual void write_v(UINT8 data);
	
	emu_timer *m_timer;
	void reset_timer();
};



extern const device_type M58846;


#endif /* _M58846_H_ */