blob: 2f461a33fcd4df30bce3d2ea7e9afb885f145619 (
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
|
// license:BSD-3-Clause
// copyright-holders:David Haywood
#ifndef MAME_INCLUDES_BFM_SC5_H
#define MAME_INCLUDES_BFM_SC5_H
#pragma once
#include "includes/bfm_sc4.h"
#include "cpu/m68000/m68000.h"
class bfm_sc5_state : public bfm_sc45_state
{
public:
bfm_sc5_state(const machine_config &mconfig, device_type type, const char *tag)
: bfm_sc45_state(mconfig, type, tag)
, m_maincpu(*this, "maincpu")
{ }
void init_sc5();
void bfm_sc5(machine_config &config);
protected:
void sc5_map(address_map &map);
required_device<m68000_base_device> m_maincpu;
uint8_t sc5_10202F0_r(offs_t offset);
void sc5_10202F0_w(offs_t offset, uint8_t data);
void sc5_duart_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
uint8_t sc5_mux1_r(offs_t offset);
void sc5_mux1_w(offs_t offset, uint8_t data);
void sc5_mux2_w(offs_t offset, uint8_t data);
DECLARE_WRITE_LINE_MEMBER(bfm_sc5_duart_irq_handler);
DECLARE_WRITE_LINE_MEMBER(bfm_sc5_duart_txa);
uint8_t bfm_sc5_duart_input_r();
void bfm_sc5_duart_output_w(uint8_t data);
};
INPUT_PORTS_EXTERN( bfm_sc5 );
#endif // MAME_INCLUDES_BFM_SC5_H
|