Previous 15994 Revisions Next

r10175 Monday 24th January, 2011 at 03:10:06 UTC by Angelo Salese
[PC-8801]: Added support for text tilemap gfx mode
[src/mess/drivers]pc8801.c

src/mess/drivers/pc8801.c
r10174r10175
1515   - Add limits for extend work RAM;
1616   - What happens to the palette contents when the analog/digital palette mode changes?
1717   - dipswitches needs to be controlled;
18   - Several games (most notably Ys series of games) have issues with the YM2203 music tempo (too fast) ... why?
1819
1920   per-game specific TODO:
2021   - 100 Yen disk(s): reads kanji ports;
r10174r10175
2324   - Advanced Fantasian: wants an irq that can't happen (I is equal to 0x3f)
2425   - American Success: reads the light pen?
2526   - Alpha (demo): crashes with "illegal function" msg;
27   - Aploon: crashes because it doesn't clear irqs when it's supposed to do so;
2628   - Balance of Power: attempt to use the SIO port for mouse polling, worked around for now;
2729   - Battle Entry: moans with a JP msg then dies if you try to press either numpad 1 or 2 (asks if the user wants to use the sound board (yes 1 / no 2)
2830   - Bishoujo Baseball Gakuen: checks ym2608 after intro screen;
2931   - Blue Moon Story: moans with a kanji msg;.
30   - Bu U Ma: sets gfx compatibility mode on title screen (attr bit 4,N-BASIC), dunno how to draw with it ...;
32   - Bubblegum Crisis: needs default work RAM (it boots if you soft reset it after that it surpasses the logo)
3133   - Grobda: palette is ugly (parent pc8801 only);
3234   - Wanderers from Ys: user data disk looks screwed? It loads with everything as maximum as per now ...
33   - Wanderers from Ys: sound crashes at some point, presumably irq issue;
3435   - Xevious: game is too fast (parent pc8801 only)
3536
3637   list of games that crashes due of floppy issues:
r10174r10175
4041   - Bokosuka Wars (polls read ID command)
4142   - Bouken Roman
4243   - Bruce Lee
43   - Bubblegum Crisis (after the logo)
4444   - Burning Point
4545   - Burunet
4646   - Castle Excellent (sets sector 0xf4?)
r10174r10175
349349   UINT8 y_height;
350350   UINT8 attr;
351351   UINT8 reverse;
352   UINT8 gfx_mode;
352353   int pal;
353   //UINT8 gfx_mode;
354354
355355   y_height = y_size == 20 ? 10 : 8;
356356
r10174r10175
363363         if(text_color_flag)
364364         {
365365            pal = (attr & 0xe0) >> 5;
366            //gfx_mode = (attr & 0x10) >> 4;
366            gfx_mode = (attr & 0x10) >> 4;
367367            reverse = 0;
368368            pal|=8; //text pal bank
369369         }
370370         else
371371         {
372372            pal = (txt_color) ? 7 : 0;
373            gfx_mode = 0;
373374            reverse = attr & 4;
374375            pal|=8; //text pal bank
375376         }
r10174r10175
392393                  res_x = x*8+xi;
393394                  res_y = y*y_height+yi;
394395
395                  if(is_cursor || reverse)
396                     color = ((gfx_data[tile*8+yi] >> (7-xi)) & 1) ? -1 : pal;
396                  if(gfx_mode)
397                  {
398                     UINT8 mask;
399
400                     mask = (xi & 4) ? 0x10 : 0x01;
401                     mask <<= ((yi & 6) >> 1);
402                     color = (tile & mask) ? pal : -1;
403                  }
397404                  else
398                     color = ((gfx_data[tile*8+yi] >> (7-xi)) & 1) ? pal : -1;
405                  {
406                     if(is_cursor || reverse)
407                        color = ((gfx_data[tile*8+yi] >> (7-xi)) & 1) ? -1 : pal;
408                     else
409                        color = ((gfx_data[tile*8+yi] >> (7-xi)) & 1) ? pal : -1;
410                  }
399411
400412                  if((res_x)<=machine->primary_screen->visible_area().max_x && (res_y)<=machine->primary_screen->visible_area().max_y)
401413                     if(color != -1)
r10174r10175
416428   UINT8 y_height;
417429   UINT8 attr;
418430   UINT8 reverse;
431   UINT8 gfx_mode;
419432   int pal;
420433
421434   y_height = y_size == 20 ? 10 : 8;
r10174r10175
432445         if(text_color_flag)
433446         {
434447            pal = (attr & 0xe0) >> 5;
435            //gfx_mode = (attr & 0x10) >> 4;
448            gfx_mode = (attr & 0x10) >> 4;
436449            reverse = 0;
437450            pal|=8; //text pal bank
438451         }
439452         else
440453         {
441454            pal = (txt_color) ? 7 : 0;
455            gfx_mode = 0;
442456            reverse = attr & 4;
443457            pal|=8; //text pal bank
444458         }
r10174r10175
459473               res_x = (x*8)+xi*2;
460474               res_y = (y*y_height)+yi;
461475
462               if(is_cursor || reverse)
463                  color = ((gfx_data[tile*8+yi] >> (7-xi)) & 1) ? -1 : pal;
476               if(gfx_mode)
477               {
478                  UINT8 mask;
479
480                  mask = (xi & 4) ? 0x10 : 0x01;
481                  mask <<= ((yi & 6) >> 1);
482                  color = (tile & mask) ? pal : -1;
483               }
464484               else
465                  color = ((gfx_data[tile*8+yi] >> (7-xi)) & 1) ? pal : -1;
485               {
486                  if(is_cursor || reverse)
487                     color = ((gfx_data[tile*8+yi] >> (7-xi)) & 1) ? -1 : pal;
488                  else
489                     color = ((gfx_data[tile*8+yi] >> (7-xi)) & 1) ? pal : -1;
490               }
466491
467492               if((res_x)<=machine->primary_screen->visible_area().max_x && (res_y)<=machine->primary_screen->visible_area().max_y)
468493                  if(color != -1)
r10174r10175
19441969/* ROMs */
19451970#define PC8801_MEM_LOAD \
19461971   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) \
1947   ROM_REGION( 0x10000, "wram", ROMREGION_ERASEFF ) \
1948   ROM_REGION( 0x1000, "hiwram", ROMREGION_ERASEFF ) \
1949   ROM_REGION( 0x40000, "ewram", ROMREGION_ERASEFF ) \
1972   ROM_REGION( 0x10000, "wram", ROMREGION_ERASE00 ) \
1973   ROM_REGION( 0x1000, "hiwram", ROMREGION_ERASE00 ) \
1974   ROM_REGION( 0x40000, "ewram", ROMREGION_ERASE00 ) \
19501975   ROM_REGION( 0xc000, "gvram", ROMREGION_ERASE00 )
19511976
19521977

Previous 15994 Revisions Next


© 1998-2018 The MESS Team