1 /***************************************************************************
2
3 Atari Avalanche hardware
4
5 ***************************************************************************/
6
7 #include "driver.h"
8 #include "vidhrdw/generic.h"
9 #include "artwork.h"
10 #include "avalnche.h"
11
12
WRITE_HANDLER(avalnche_videoram_w)13 WRITE_HANDLER( avalnche_videoram_w )
14 {
15 videoram[offset] = data;
16
17 if (offset >= 0x200)
18 {
19 int x,y,i;
20
21 x = 8 * (offset % 32);
22 y = offset / 32;
23
24 for (i = 0;i < 8;i++)
25 plot_pixel(tmpbitmap,x+7-i,y,Machine->pens[(data >> i) & 1]);
26 }
27 }
28
29
VIDEO_UPDATE(avalnche)30 VIDEO_UPDATE( avalnche )
31 {
32 if (get_vh_global_attribute_changed())
33 {
34 int offs;
35
36 for (offs = 0;offs < videoram_size; offs++)
37 avalnche_videoram_w(offs,videoram[offs]);
38 }
39
40 /* copy the character mapped graphics */
41 copybitmap(bitmap,tmpbitmap,0,0,0,0,&Machine->visible_area,TRANSPARENCY_NONE,0);
42 }
43