blob: 48145b4062ddd5977a020823571e998e8b98388a (
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
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
|
// license:BSD-3-Clause
// copyright-holders:Dan Boris
#ifndef MAME_VIDEO_MARIA_H
#define MAME_VIDEO_MARIA_H
#pragma once
// ======================> atari_maria_device
class atari_maria_device : public device_t
{
public:
// construction/destruction
atari_maria_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
static void set_cpu_tag(device_t &device, const char *tag) { downcast<atari_maria_device &>(device).m_cpu_tag = tag; }
void interrupt(int lines);
void startdma(int lines);
DECLARE_READ8_MEMBER(read);
DECLARE_WRITE8_MEMBER(write);
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
private:
int m_maria_palette[32];
int m_line_ram[2][160];
int m_active_buffer;
int m_write_mode;
unsigned int m_dll;
unsigned int m_dl;
int m_holey;
int m_offset;
int m_vblank;
int m_dmaon;
int m_dpp;
int m_wsync;
int m_color_kill;
int m_cwidth;
int m_bcntl;
int m_kangaroo;
int m_rm;
int m_nmi;
unsigned int m_charbase;
bitmap_ind16 m_bitmap;
void draw_scanline();
int is_holey(unsigned int addr);
int write_line_ram(int addr, uint8_t offset, int pal);
const char *m_cpu_tag;
cpu_device *m_cpu; // CPU whose space(AS_PROGRAM) serves as DMA source
screen_device *m_screen;
};
// device type definition
DECLARE_DEVICE_TYPE(ATARI_MARIA, atari_maria_device)
#define MCFG_MARIA_DMACPU(_tag) \
atari_maria_device::set_cpu_tag(*device, _tag);
#endif // MAME_VIDEO_MARIA_H
|