summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sh/sh7032.h
blob: 8608da410d6b84dcae6d680204a4d1b9926337e7 (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
// license:BSD-3-Clause
// copyright-holders:Angelo Salese

// SH7032, sh1 variant

#ifndef MAME_CPU_SH_SH7032_H
#define MAME_CPU_SH_SH7032_H

#pragma once

#include "sh2.h"

class sh7032_device : public sh2_device
{
public:
	sh7032_device(const machine_config &mconfig, const char *_tag, device_t *_owner, uint32_t _clock);

protected:
	virtual void device_start() override ATTR_COLD;
	virtual void device_reset() override ATTR_COLD;

private:
	void sh7032_map(address_map &map) ATTR_COLD;

	uint16_t sh7032_r(offs_t offset);
	void sh7032_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);

	uint16_t m_sh7032_regs[0x200];
};

DECLARE_DEVICE_TYPE(SH7032, sh7032_device)

#endif // MAME_CPU_SH_SH7032_H