Previous 15994 Revisions Next

r1763 Monday 25th February, 2008 at 00:52:21 UTC by Nathan Woods
[APPLE2] Removed usage of tilemaps
[docs]messnew.txt
[src/mess/drivers]apple2.c
[src/mess/includes]apple2.h
[src/mess/machine]apple2.c apple2gs.c
[src/mess/video]apple2.c

src/mess/includes/apple2.h
r1762r1763
8989VIDEO_START( apple2p );
9090VIDEO_START( apple2e );
9191VIDEO_UPDATE( apple2 );
92void apple2_video_touch(offs_t offset);
9392void apple2_set_fgcolor(int color);
9493void apple2_set_bgcolor(int color);
9594int apple2_get_fgcolor(void);
src/mess/video/apple2.c
r1762r1763
1313static const UINT8 *a2_videoram;
1414static UINT32 a2_videomask;
1515static UINT32 old_a2;
16static tilemap *text_tilemap;
17static tilemap *dbltext_tilemap;
18static tilemap *lores_tilemap;
19static int text_videobase;
20static int dbltext_videobase;
21static int lores_videobase;
2216static int fgcolor, bgcolor, flash;
2317static int alt_charset_value;
2418static UINT16 *hires_artifact_map;
2519static UINT16 *dhires_artifact_map;
26static UINT8 *lores_tiledata;
2720
2821#define   BLACK   0
2922#define DKRED   1
r1762r1763
4639#define PROFILER_VIDEOTOUCH      PROFILER_USER3
4740
4841/***************************************************************************
49  helpers
42   HELPERS
5043***************************************************************************/
5144
45/*-------------------------------------------------
46    effective_a2 - calculates the effective a2
47   register
48-------------------------------------------------*/
49
5250INLINE UINT32 effective_a2(void)
5351{
5452   return a2 & a2_videomask;
5553}
5654
5755
56/*-------------------------------------------------
57    compute_video_address - performs funky Apple II
58   video address lookup
59-------------------------------------------------*/
5860
59static void apple2_draw_tilemap(mame_bitmap *bitmap, const rectangle *cliprect,
60   int beginrow, int endrow, tilemap *tm, int raw_videobase, int *tm_videobase)
61static UINT32 compute_video_address(int col, int row)
6162{
62   rectangle new_cliprect;
63   /* special Apple II addressing - gotta love it */
64   return (((row & 0x07) << 7) | ((row & 0x18) * 5 + col));
65}
6366
64   new_cliprect = *cliprect;
6567
66   if (new_cliprect.min_y < beginrow)
67      new_cliprect.min_y = beginrow;
68   if (new_cliprect.max_y > endrow)
69      new_cliprect.max_y = endrow;
70   if (new_cliprect.min_y > new_cliprect.max_y)
71      return;
7268
73   if (raw_videobase != *tm_videobase)
74   {
75      *tm_videobase = raw_videobase;
76      tilemap_mark_all_tiles_dirty(tm);
77   }
78   tilemap_draw(bitmap, &new_cliprect, tm, 0, 0);
69/*-------------------------------------------------
70    adjust_begin_and_end_row - processes the cliprect
71-------------------------------------------------*/
72
73static void adjust_begin_and_end_row(const rectangle *cliprect, int *beginrow, int *endrow)
74{
75   /* assumptions of the code */
76   assert((*beginrow % 8) == 0);
77   assert((*endrow % 8) == 7);
78
79   *beginrow = MAX(*beginrow, cliprect->min_y - (cliprect->min_y % 8));
80   *endrow = MIN(*endrow, cliprect->max_y - (cliprect->max_y % 8) + 7);
81
82   /* sanity check again */
83   assert((*beginrow % 8) == 0);
84   assert((*endrow % 8) == 7);
7985}
8086
87
88
8189/***************************************************************************
82  text
90   TEXT
8391***************************************************************************/
8492
85static void apple2_generaltext_gettileinfo(int videobase, int memory_offset, int *code, int *color)
93/*-------------------------------------------------
94    apple2_plot_text_character - plots a single
95   textual character
96-------------------------------------------------*/
97
98INLINE void apple2_plot_text_character(mame_bitmap *bitmap, int xpos, int ypos, int xscale, UINT32 code,
99   const UINT8 *textgfx_data, UINT32 textgfx_datalen, UINT32 my_a2)
86100{
87   int current_fgcolor = fgcolor;
88   int current_bgcolor = bgcolor;
89   int i;
101   int x, y, i;
102   int fg = fgcolor;
103   int bg = bgcolor;
104   const UINT8 *chardata;
105   UINT16 color;
90106
91   *code = a2_videoram[videobase + memory_offset];
92
93   if (effective_a2() & VAR_ALTCHARSET)
107   if (my_a2 & VAR_ALTCHARSET)
94108   {
95      *code |= alt_charset_value;
109      /* we're using an alternate charset */
110      code |= alt_charset_value;
96111   }
97   else if (flash && (*code >= 0x40) && (*code <= 0x7f))
112   else if (flash && (code >= 0x40) && (code <= 0x7f))
98113   {
99      i = current_fgcolor;
100      current_fgcolor = current_bgcolor;
101      current_bgcolor = i;
114      /* we're flashing; swap */
115      i = fg;
116      fg = bg;
117      bg = i;
102118   }
103119
104   *color = (current_fgcolor * 16) + current_bgcolor;
105}
120   /* look up the character data */
121   chardata = &textgfx_data[(code * 8) % textgfx_datalen];
106122
107static TILE_GET_INFO(apple2_text_gettileinfo)
108{
109   int code, color;
110   apple2_generaltext_gettileinfo(text_videobase, tile_index, &code, &color);
111   SET_TILE_INFO(
112      0,            /* gfx */
113      code,         /* character */
114      color,         /* color */
115      0);            /* flags */
123   /* and finally, plot the character itself */
124   for (y = 0; y < 8; y++)
125   {
126      for (x = 0; x < 7; x++)
127      {
128         color = (chardata[y] & (1 << x)) ? bg : fg;
129         for (i = 0; i < xscale; i++)
130         {
131            *BITMAP_ADDR16(bitmap, ypos + y, xpos + (x * xscale) + i) = color;
132         }
133      }
134   }
116135}
117136
118static TILE_GET_INFO(apple2_dbltext_gettileinfo)
119{
120   int code, color;
121   apple2_generaltext_gettileinfo(dbltext_videobase, tile_index, &code, &color);
122   SET_TILE_INFO(
123      1,            /* gfx */
124      code,         /* character */
125      color,         /* color */
126      0);            /* flags */
127}
128137
129static UINT32 apple2_text_getmemoryoffset(UINT32 col, UINT32 row, UINT32 num_cols, UINT32 num_rows)
130{
131   /* Special Apple II addressing.  Gotta love it. */
132   return (((row & 0x07) << 7) | ((row & 0x18) * 5 + col));
133}
134138
135static UINT32 apple2_dbltext_getmemoryoffset(UINT32 col, UINT32 row, UINT32 num_cols, UINT32 num_rows)
136{
137   return apple2_text_getmemoryoffset(col / 2, row, num_cols / 2, num_rows) + ((col % 2) ? 0x00000 : 0x10000);
138}
139/*-------------------------------------------------
140    apple2_text_draw - renders text (either 40
141   column or 80 column)
142-------------------------------------------------*/
139143
140144static void apple2_text_draw(mame_bitmap *bitmap, const rectangle *cliprect, int page, int beginrow, int endrow)
141145{
142   if (effective_a2() & VAR_80COL)
143      apple2_draw_tilemap(bitmap, cliprect, beginrow, endrow, dbltext_tilemap, page ? 0x800 : 0x400, &dbltext_videobase);
144   else
145      apple2_draw_tilemap(bitmap, cliprect, beginrow, endrow, text_tilemap, page ? 0x800 : 0x400, &text_videobase);
146   int row, col;
147   UINT32 start_address = (page ? 0x0800 : 0x0400);
148   UINT32 address;
149   const UINT8 *textgfx_data = memory_region(REGION_GFX1);
150   UINT32 textgfx_datalen = memory_region_length(REGION_GFX1);
151   UINT32 my_a2 = effective_a2();
152
153   /* perform adjustments */
154   adjust_begin_and_end_row(cliprect, &beginrow, &endrow);
155
156   for (row = beginrow; row <= endrow; row += 8)
157   {
158      for (col = 0; col < 40; col++)
159      {
160         /* calculate adderss */
161         address = start_address + compute_video_address(col, row / 8);
162
163         if (my_a2 & VAR_80COL)
164         {
165            apple2_plot_text_character(bitmap, col * 14 + 0, row, 1, a2_videoram[address + 0x10000],
166               textgfx_data, textgfx_datalen, my_a2);
167            apple2_plot_text_character(bitmap, col * 14 + 7, row, 1, a2_videoram[address + 0x00000],
168               textgfx_data, textgfx_datalen, my_a2);
169         }
170         else
171         {
172            apple2_plot_text_character(bitmap, col * 14, row, 2, a2_videoram[address],
173               textgfx_data, textgfx_datalen, my_a2);
174         }
175      }
176   }
146177}
147178
148void apple2_set_fgcolor(int color)
179
180/*-------------------------------------------------
181    apple2_lores_draw - renders lo-res text
182-------------------------------------------------*/
183
184static void apple2_lores_draw(mame_bitmap *bitmap, const rectangle *cliprect, int page, int beginrow, int endrow)
149185{
150   if (color != fgcolor)
186   int row, col, y, x;
187   UINT8 code;
188   UINT32 start_address = (page ? 0x0800 : 0x0400);
189   UINT32 address;
190
191   /* perform adjustments */
192   adjust_begin_and_end_row(cliprect, &beginrow, &endrow);
193
194   for (row = beginrow; row <= endrow; row += 8)
151195   {
152      tilemap_mark_all_tiles_dirty(text_tilemap);
153      tilemap_mark_all_tiles_dirty(dbltext_tilemap);
154      fgcolor = color;
196      for (col = 0; col < 40; col++)
197      {
198         /* calculate adderss */
199         address = start_address + compute_video_address(col, row / 8);
200
201         /* perform the lookup */
202         code = a2_videoram[address];
203
204         /* and now draw */
205         for (y = 0; y < 4; y++)
206         {
207            for (x = 0; x < 14; x++)
208               *BITMAP_ADDR16(bitmap, row + y, col * 14 + x) = (code >> 0) & 0x0F;
209         }
210         for (y = 4; y < 8; y++)
211         {
212            for (x = 0; x < 14; x++)
213               *BITMAP_ADDR16(bitmap, row + y, col * 14 + x) = (code >> 0) & 0x0F;
214         }
215      }
155216   }
156217}
157218
219
220/*-------------------------------------------------
221    apple2_set_fgcolor
222-------------------------------------------------*/
223
224void apple2_set_fgcolor(int color)
225{
226   fgcolor = color;
227}
228
229
230/*-------------------------------------------------
231    apple2_set_bgcolor
232-------------------------------------------------*/
233
158234void apple2_set_bgcolor(int color)
159235{
160   if (color != bgcolor)
161   {
162      tilemap_mark_all_tiles_dirty(text_tilemap);
163      tilemap_mark_all_tiles_dirty(dbltext_tilemap);
164      bgcolor = color;
165   }
236   bgcolor = color;
166237}
167238
239
240/*-------------------------------------------------
241    apple2_get_fgcolor
242-------------------------------------------------*/
243
168244int apple2_get_fgcolor(void)
169245{
170246   return fgcolor;
171247}
172248
249
250/*-------------------------------------------------
251    apple2_get_bgcolor
252-------------------------------------------------*/
253
173254int apple2_get_bgcolor(void)
174255{
175256   return bgcolor;
176257}
177258
178/***************************************************************************
179  low resolution graphics
180***************************************************************************/
181259
182static TILE_GET_INFO(apple2_lores_gettileinfo)
183{
184   UINT32 ch = a2_videoram[lores_videobase + tile_index];
185   tileinfo->pen_data = lores_tiledata;
186   tileinfo->palette_base = ch * 2;
187   tileinfo->flags = 0;
188}
189260
190static void apple2_lores_draw(mame_bitmap *bitmap, const rectangle *cliprect, int page, int beginrow, int endrow)
191{
192   apple2_draw_tilemap(bitmap, cliprect, beginrow, endrow, lores_tilemap, page ? 0x800 : 0x400, &lores_videobase);
193}
194
195261/***************************************************************************
196 high resolution graphics
262   HIGH RESOLUTION GRAPHICS
197263***************************************************************************/
198264
199static UINT32 apple2_hires_getmemoryoffset(UINT32 col, UINT32 row, UINT32 num_cols, UINT32 num_rows)
200{
201   /* Special Apple II addressing.  Gotta love it. */
202   return apple2_text_getmemoryoffset(col, row / 8, num_cols, num_rows) | ((row & 7) << 10);
203}
204
205265struct drawtask_params
206266{
207267   mame_bitmap *bitmap;
r1762r1763
241301   {
242302      for (col = 0; col < 40; col++)
243303      {
244         offset = apple2_hires_getmemoryoffset(col, row, 0, 0);
304         offset = compute_video_address(col, row / 8);
245305
246306         switch(columns) {
247307         case 40:
r1762r1763
314374
315375
316376/***************************************************************************
317 video core
377   VIDEO CORE
318378***************************************************************************/
319379
320380void apple2_video_start(const UINT8 *vram, size_t vram_size, UINT32 ignored_softswitches, int hires_modulo)
r1762r1763
344404   alt_charset_value = memory_region_length(REGION_GFX1) / 16;
345405   a2_videoram = vram;
346406
347   text_tilemap = tilemap_create(
348      apple2_text_gettileinfo,
349      apple2_text_getmemoryoffset,
350      7*2, 8,
351      40, 24);
352
353   dbltext_tilemap = tilemap_create(
354      apple2_dbltext_gettileinfo,
355      apple2_dbltext_getmemoryoffset,
356      7, 8,
357      80, 24);
358
359   lores_tilemap = tilemap_create(
360      apple2_lores_gettileinfo,
361      apple2_text_getmemoryoffset,
362      14, 8,
363      40, 24);
364
365407   /* 2^3 dependent pixels * 2 color sets * 2 offsets */
366408   hires_artifact_map = auto_malloc(sizeof(UINT16) * 8 * 2 * 2);
367409
368410   /* 2^4 dependent pixels */
369411   dhires_artifact_map = auto_malloc(sizeof(UINT16) * 16);
370412
371   /* 14x8 */
372   lores_tiledata = auto_malloc(sizeof(UINT8) * 14 * 8);
373
374   /* build lores_tiledata */
375   memset(lores_tiledata + 0*14, 1, 4*14);
376   memset(lores_tiledata + 4*14, 0, 4*14);
377
378413   /* build hires artifact map */
379414   for (i = 0; i < 8; i++)
380415   {
r1762r1763
406441   }
407442
408443   memset(&old_a2, 0, sizeof(old_a2));
409   text_videobase = lores_videobase = 0;
410444   a2_videomask = ~ignored_softswitches;
411445}
412446
r1762r1763
441475VIDEO_UPDATE( apple2 )
442476{
443477   int page;
444   int new_flash;
445478   UINT32 new_a2;
446479
447   new_flash = (attotime_mul(timer_get_time(), 4).seconds & 1) ? 1 : 0;
448   if (flash != new_flash)
449   {
450      flash = new_flash;
451      tilemap_mark_all_tiles_dirty(text_tilemap);
452      tilemap_mark_all_tiles_dirty(dbltext_tilemap);
453   }
480   /* calculate the flash value */
481   flash = (attotime_mul(timer_get_time(), 4).seconds & 1) ? 1 : 0;
454482
455483   /* read out relevant softswitch variables; to see what has changed */
456484   new_a2 = effective_a2();
r1762r1763
461489   if (ALWAYS_REFRESH || (new_a2 != old_a2))
462490   {
463491      old_a2 = new_a2;
464      tilemap_mark_all_tiles_dirty(text_tilemap);
465      tilemap_mark_all_tiles_dirty(dbltext_tilemap);
466      tilemap_mark_all_tiles_dirty(lores_tilemap);
467492   }
468493
469494   /* choose which page to use */
470495   page = (new_a2 & VAR_PAGE2) ? 1 : 0;
471496
497   /* choose the video mode to draw */
472498   if (effective_a2() & VAR_TEXT)
473499   {
500      /* text screen */
474501      apple2_text_draw(bitmap, cliprect, page, 0, 191);
475502   }
476503   else if ((effective_a2() & VAR_HIRES) && (effective_a2() & VAR_MIXED))
477504   {
505      /* hi-res on top; text at bottom */
478506      apple2_hires_draw(bitmap, cliprect, page, 0, 159);
479507      apple2_text_draw(bitmap, cliprect, page, 160, 191);
480508   }
481509   else if (effective_a2() & VAR_HIRES)
482510   {
511      /* hi-res screen */
483512      apple2_hires_draw(bitmap, cliprect, page, 0, 191);
484513   }
485514   else if (effective_a2() & VAR_MIXED)
486515   {
516      /* lo-res on top; text at bottom */
487517      apple2_lores_draw(bitmap, cliprect, page, 0, 159);
488518      apple2_text_draw(bitmap, cliprect, page, 160, 191);
489519   }
490520   else
491521   {
522      /* lo-res screen */
492523      apple2_lores_draw(bitmap, cliprect, page, 0, 191);
493524   }
494525   return 0;
495526}
496
497void apple2_video_touch(offs_t offset)
498{
499   profiler_mark(PROFILER_VIDEOTOUCH);
500   if (offset >= text_videobase)
501      tilemap_mark_tile_dirty(text_tilemap, offset - text_videobase);
502   if (offset >= dbltext_videobase)
503      tilemap_mark_tile_dirty(dbltext_tilemap, offset - dbltext_videobase);
504   if (offset >= lores_videobase)
505      tilemap_mark_tile_dirty(lores_tilemap, offset - text_videobase);
506   profiler_mark(PROFILER_END);
507}
src/mess/machine/apple2gs.c
r1762r1763
12401240   if (!(apple2gs_shadow & 0x01))
12411241   {
12421242      apple2gs_slowmem[offset] = data;
1243      apple2_video_touch(offset);
12441243   }
12451244}
12461245
r1762r1763
12521251   if (!(apple2gs_shadow & 0x01))
12531252   {
12541253      apple2gs_slowmem[offset] = data;
1255      apple2_video_touch(offset);
12561254   }
12571255}
12581256
r1762r1763
12641262   if (!(apple2gs_shadow & 0x02))
12651263   {
12661264      apple2gs_slowmem[offset] = data;
1267      apple2_video_touch(offset);
12681265   }
12691266}
12701267
r1762r1763
12761273   if (!(apple2gs_shadow & 0x12) || !(apple2gs_shadow & 0x08))
12771274   {
12781275      apple2gs_slowmem[offset] = data;
1279      apple2_video_touch(offset);
12801276   }
12811277}
12821278
r1762r1763
16321628static WRITE8_HANDLER( apple2gs_Exxxxx_w )
16331629{
16341630   apple2gs_slowmem[offset] = data;
1635   apple2_video_touch(offset);
16361631}
16371632
16381633static WRITE8_HANDLER( apple2gs_E004xx_w ) { apple2gs_Exxxxx_w(offset + 0x00400, data); }
src/mess/machine/apple2.c
r1762r1763
794794{
795795   offset += 0x400;
796796   mess_ram[offset] = data;
797   apple2_video_touch(offset);
798797}
799798
800799static WRITE8_HANDLER ( apple2_mainram2000_w )
801800{
802801   offset += 0x2000;
803802   mess_ram[offset] = data;
804   apple2_video_touch(offset);
805803}
806804
807805static WRITE8_HANDLER ( apple2_auxram0400_w )
808806{
809807   offset += 0x10400;
810808   mess_ram[offset] = data;
811   apple2_video_touch(offset);
812809}
813810
814811static WRITE8_HANDLER ( apple2_auxram2000_w )
815812{
816813   offset += 0x12000;
817814   mess_ram[offset] = data;
818   apple2_video_touch(offset);
819815}
820816
821817
src/mess/drivers/apple2.c
r1762r1763
526526   RGB_WHITE
527527};
528528
529static const gfx_layout apple2_text_layout =
530{
531   14,8,      /* 14*8 characters */
532   256,      /* 256 characters */
533   1,         /* 1 bits per pixel */
534   { 0 },      /* no bitplanes; 1 bit per pixel */
535   { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 },   /* x offsets */
536   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
537   8*8         /* every char takes 8 bytes */
538};
539
540static const gfx_layout apple2_dbltext_layout =
541{
542   7,8,      /* 7*8 characters */
543   256,      /* 256 characters */
544   1,         /* 1 bits per pixel */
545   { 0 },      /* no bitplanes; 1 bit per pixel */
546   { 1, 2, 3, 4, 5, 6, 7 },    /* x offsets */
547   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
548   8*8         /* every char takes 8 bytes */
549};
550
551static GFXDECODE_START( apple2 )
552   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, apple2_text_layout, 0, 2 )
553   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, apple2_dbltext_layout, 0, 2 )
554GFXDECODE_END
555
556static const gfx_layout apple2e_text_layout =
557{
558   14,8,      /* 14*8 characters */
559   1024,      /* 256 characters */
560   1,         /* 1 bits per pixel */
561   { 0 },      /* no bitplanes; 1 bit per pixel */
562   { 7, 7, 6, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1 },   /* x offsets */
563   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
564   8*8         /* every char takes 8 bytes */
565};
566
567static const gfx_layout apple2e_dbltext_layout =
568{
569   7,8,      /* 7*8 characters */
570   1024,      /* 256 characters */
571   1,         /* 1 bits per pixel */
572   { 0 },      /* no bitplanes; 1 bit per pixel */
573   { 7, 6, 5, 4, 3, 2, 1 },    /* x offsets */
574   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
575   8*8         /* every char takes 8 bytes */
576};
577
578static GFXDECODE_START( apple2e )
579   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, apple2e_text_layout, 0, 2 )
580   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, apple2e_dbltext_layout, 0, 2 )
581GFXDECODE_END
582
583static const unsigned short apple2_colortable[] =
584{
585   0,   0,   0,   1,   0,   2,   0,   3,   0,   4,   0,   5,   0,   6,   0,   7,
586   0,   8,   0,   9,   0,   10,   0,   11,   0,   12,   0,   13,   0,   14,   0,   15,
587   1,   0,   1,   1,   1,   2,   1,   3,   1,   4,   1,   5,   1,   6,   1,   7,
588   1,   8,   1,   9,   1,   10,   1,   11,   1,   12,   1,   13,   1,   14,   1,   15,
589   2,   0,   2,   1,   2,   2,   2,   3,   2,   4,   2,   5,   2,   6,   2,   7,
590   2,   8,   2,   9,   2,   10,   2,   11,   2,   12,   2,   13,   2,   14,   2,   15,
591   3,   0,   3,   1,   3,   2,   3,   3,   3,   4,   3,   5,   3,   6,   3,   7,
592   3,   8,   3,   9,   3,   10,   3,   11,   3,   12,   3,   13,   3,   14,   3,   15,
593   4,   0,   4,   1,   4,   2,   4,   3,   4,   4,   4,   5,   4,   6,   4,   7,
594   4,   8,   4,   9,   4,   10,   4,   11,   4,   12,   4,   13,   4,   14,   4,   15,
595   5,   0,   5,   1,   5,   2,   5,   3,   5,   4,   5,   5,   5,   6,   5,   7,
596   5,   8,   5,   9,   5,   10,   5,   11,   5,   12,   5,   13,   5,   14,   5,   15,
597   6,   0,   6,   1,   6,   2,   6,   3,   6,   4,   6,   5,   6,   6,   6,   7,
598   6,   8,   6,   9,   6,   10,   6,   11,   6,   12,   6,   13,   6,   14,   6,   15,
599   7,   0,   7,   1,   7,   2,   7,   3,   7,   4,   7,   5,   7,   6,   7,   7,
600   7,   8,   7,   9,   7,   10,   7,   11,   7,   12,   7,   13,   7,   14,   7,   15,
601   8,   0,   8,   1,   8,   2,   8,   3,   8,   4,   8,   5,   8,   6,   8,   7,
602   8,   8,   8,   9,   8,   10,   8,   11,   8,   12,   8,   13,   8,   14,   8,   15,
603   9,   0,   9,   1,   9,   2,   9,   3,   9,   4,   9,   5,   9,   6,   9,   7,
604   9,   8,   9,   9,   9,   10,   9,   11,   9,   12,   9,   13,   9,   14,   9,   15,
605   10,   0,   10,   1,   10,   2,   10,   3,   10,   4,   10,   5,   10,   6,   10,   7,
606   10,   8,   10,   9,   10,   10,   10,   11,   10,   12,   10,   13,   10,   14,   10,   15,
607   11,   0,   11,   1,   11,   2,   11,   3,   11,   4,   11,   5,   11,   6,   11,   7,
608   11,   8,   11,   9,   11,   10,   11,   11,   11,   12,   11,   13,   11,   14,   11,   15,
609   12,   0,   12,   1,   12,   2,   12,   3,   12,   4,   12,   5,   12,   6,   12,   7,
610   12,   8,   12,   9,   12,   10,   12,   11,   12,   12,   12,   13,   12,   14,   12,   15,
611   13,   0,   13,   1,   13,   2,   13,   3,   13,   4,   13,   5,   13,   6,   13,   7,
612   13,   8,   13,   9,   13,   10,   13,   11,   13,   12,   13,   13,   13,   14,   13,   15,
613   14,   0,   14,   1,   14,   2,   14,   3,   14,   4,   14,   5,   14,   6,   14,   7,
614   14,   8,   14,   9,   14,   10,   14,   11,   14,   12,   14,   13,   14,   14,   14,   15,
615   15,   0,   15,   1,   15,   2,   15,   3,   15,   4,   15,   5,   15,   6,   15,   7,
616   15,   8,   15,   9,   15,   10,   15,   11,   15,   12,   15,   13,   15,   14,   15,   15
617};
618
619
620529/* Initialize the palette */
621530PALETTE_INIT( apple2 )
622531{
r1762r1763
663572
664573static MACHINE_DRIVER_START( apple2 )
665574   MDRV_IMPORT_FROM( apple2_common )
666   MDRV_GFXDECODE(apple2)
667575MACHINE_DRIVER_END
668576
669577static MACHINE_DRIVER_START( apple2p )
670578   MDRV_IMPORT_FROM( apple2_common )
671579   MDRV_VIDEO_START(apple2p)
672   MDRV_GFXDECODE(apple2)
673580MACHINE_DRIVER_END
674581
675582#ifdef UNUSED_FUNCTION
676583static MACHINE_DRIVER_START( ace100 )
677584   MDRV_IMPORT_FROM( apple2_common )
678585   MDRV_VIDEO_START(apple2p)
679   MDRV_GFXDECODE(apple2)
680586MACHINE_DRIVER_END
681587#endif
682588
r1762r1763
692598MACHINE_DRIVER_START( apple2e )
693599   MDRV_IMPORT_FROM( apple2_common )
694600   MDRV_VIDEO_START(apple2e)
695   MDRV_GFXDECODE(apple2e)
696601MACHINE_DRIVER_END
697602
698603static MACHINE_DRIVER_START( apple2ee )
docs/messnew.txt
r1762r1763
88
99System Driver Changes:
1010----------------------
11- [APFM1000] Added special APF video mode [PeT]
12
13- [APPLE2] Removed usage of tilemaps.  [Nate Woods]
14
1115- [QL] System boots up again. (bug #1495) [Curt Coder]
1216
13- [APFM1000] added special APF video mode [PeT]
1417
1518
1619User Interface Changes:

Previous 15994 Revisions Next


© 1998-2018 The MESS Team