blob: 2eb019e0837875f77666624e93cdcb3139986db7 (
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 MAME_CPU_MELPS4_M58846_H
#define MAME_CPU_MELPS4_M58846_H
#pragma once
#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, const XTAL &clock);
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
// device_execute_interface overrides
virtual void execute_one() override;
// timers
virtual void write_v(u8 data) override;
TIMER_CALLBACK_MEMBER(timer_update);
void data_128x4(address_map &map);
void program_2kx9(address_map &map);
emu_timer *m_timer;
void reset_timer();
};
DECLARE_DEVICE_TYPE(M58846, m58846_device)
#endif // MAME_CPU_MELPS4_M58846_H
|