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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/*************************************************************************
Exidy 440 hardware
*************************************************************************/
#define EXIDY440_MASTER_CLOCK (XTAL_12_9792MHz)
class exidy440_state : public driver_device
{
public:
exidy440_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_imageram(*this, "imageram"),
m_spriteram(*this, "spriteram"),
m_scanline(*this, "scanline"),
m_maincpu(*this, "maincpu") { }
required_shared_ptr<UINT8> m_imageram;
required_shared_ptr<UINT8> m_spriteram;
required_shared_ptr<UINT8> m_scanline;
UINT8 m_bank;
const UINT8 *m_showdown_bank_data[2];
INT8 m_showdown_bank_select;
UINT8 m_showdown_bank_offset;
UINT8 m_firq_vblank;
UINT8 m_firq_beam;
UINT8 *m_topsecex_yscroll;
UINT8 m_latched_x;
UINT8 *m_local_videoram;
UINT8 *m_local_paletteram;
UINT8 m_firq_enable;
UINT8 m_firq_select;
UINT8 m_palettebank_io;
UINT8 m_palettebank_vis;
device_t *m_custom;
DECLARE_WRITE8_MEMBER(bankram_w);
DECLARE_READ8_MEMBER(exidy440_input_port_3_r);
DECLARE_READ8_MEMBER(sound_command_ack_r);
DECLARE_WRITE8_MEMBER(sound_command_w);
DECLARE_WRITE8_MEMBER(exidy440_input_port_3_w);
DECLARE_WRITE8_MEMBER(exidy440_coin_counter_w);
DECLARE_READ8_MEMBER(showdown_bank0_r);
DECLARE_READ8_MEMBER(claypign_protection_r);
DECLARE_READ8_MEMBER(topsecex_input_port_5_r);
DECLARE_WRITE8_MEMBER(topsecex_yscroll_w);
DECLARE_READ8_MEMBER(exidy440_videoram_r);
DECLARE_WRITE8_MEMBER(exidy440_videoram_w);
DECLARE_READ8_MEMBER(exidy440_paletteram_r);
DECLARE_WRITE8_MEMBER(exidy440_paletteram_w);
DECLARE_READ8_MEMBER(exidy440_horizontal_pos_r);
DECLARE_READ8_MEMBER(exidy440_vertical_pos_r);
DECLARE_WRITE8_MEMBER(exidy440_spriteram_w);
DECLARE_WRITE8_MEMBER(exidy440_control_w);
DECLARE_WRITE8_MEMBER(exidy440_interrupt_clear_w);
DECLARE_CUSTOM_INPUT_MEMBER(firq_beam_r);
DECLARE_CUSTOM_INPUT_MEMBER(firq_vblank_r);
DECLARE_CUSTOM_INPUT_MEMBER(hitnmiss_button1_r);
DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
DECLARE_DRIVER_INIT(showdown);
DECLARE_DRIVER_INIT(topsecex);
DECLARE_DRIVER_INIT(yukon);
DECLARE_DRIVER_INIT(exidy440);
DECLARE_DRIVER_INIT(claypign);
virtual void machine_start();
virtual void machine_reset();
DECLARE_VIDEO_START(exidy440);
DECLARE_VIDEO_START(topsecex);
UINT32 screen_update_exidy440(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
UINT32 screen_update_topsecex(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(exidy440_vblank_interrupt);
TIMER_CALLBACK_MEMBER(delayed_sound_command_w);
TIMER_CALLBACK_MEMBER(beam_firq_callback);
TIMER_CALLBACK_MEMBER(collide_firq_callback);
void exidy440_update_firq();
void exidy440_bank_select(UINT8 bank);
required_device<cpu_device> m_maincpu;
};
/*----------- defined in drivers/exidy440.c -----------*/
void exidy440_bank_select(running_machine &machine, UINT8 bank);
/*----------- defined in video/exidy440.c -----------*/
MACHINE_CONFIG_EXTERN( exidy440_video );
MACHINE_CONFIG_EXTERN( topsecex_video );
|