src/mess/drivers/pc8801.c
| r10174 | r10175 | |
| 15 | 15 | - Add limits for extend work RAM; |
| 16 | 16 | - What happens to the palette contents when the analog/digital palette mode changes? |
| 17 | 17 | - dipswitches needs to be controlled; |
| 18 | - Several games (most notably Ys series of games) have issues with the YM2203 music tempo (too fast) ... why? |
| 18 | 19 | |
| 19 | 20 | per-game specific TODO: |
| 20 | 21 | - 100 Yen disk(s): reads kanji ports; |
| r10174 | r10175 | |
| 23 | 24 | - Advanced Fantasian: wants an irq that can't happen (I is equal to 0x3f) |
| 24 | 25 | - American Success: reads the light pen? |
| 25 | 26 | - Alpha (demo): crashes with "illegal function" msg; |
| 27 | - Aploon: crashes because it doesn't clear irqs when it's supposed to do so; |
| 26 | 28 | - Balance of Power: attempt to use the SIO port for mouse polling, worked around for now; |
| 27 | 29 | - 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) |
| 28 | 30 | - Bishoujo Baseball Gakuen: checks ym2608 after intro screen; |
| 29 | 31 | - 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) |
| 31 | 33 | - Grobda: palette is ugly (parent pc8801 only); |
| 32 | 34 | - 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; |
| 34 | 35 | - Xevious: game is too fast (parent pc8801 only) |
| 35 | 36 | |
| 36 | 37 | list of games that crashes due of floppy issues: |
| r10174 | r10175 | |
| 40 | 41 | - Bokosuka Wars (polls read ID command) |
| 41 | 42 | - Bouken Roman |
| 42 | 43 | - Bruce Lee |
| 43 | | - Bubblegum Crisis (after the logo) |
| 44 | 44 | - Burning Point |
| 45 | 45 | - Burunet |
| 46 | 46 | - Castle Excellent (sets sector 0xf4?) |
| r10174 | r10175 | |
| 349 | 349 | UINT8 y_height; |
| 350 | 350 | UINT8 attr; |
| 351 | 351 | UINT8 reverse; |
| 352 | UINT8 gfx_mode; |
| 352 | 353 | int pal; |
| 353 | | //UINT8 gfx_mode; |
| 354 | 354 | |
| 355 | 355 | y_height = y_size == 20 ? 10 : 8; |
| 356 | 356 | |
| r10174 | r10175 | |
| 363 | 363 | if(text_color_flag) |
| 364 | 364 | { |
| 365 | 365 | pal = (attr & 0xe0) >> 5; |
| 366 | | //gfx_mode = (attr & 0x10) >> 4; |
| 366 | gfx_mode = (attr & 0x10) >> 4; |
| 367 | 367 | reverse = 0; |
| 368 | 368 | pal|=8; //text pal bank |
| 369 | 369 | } |
| 370 | 370 | else |
| 371 | 371 | { |
| 372 | 372 | pal = (txt_color) ? 7 : 0; |
| 373 | gfx_mode = 0; |
| 373 | 374 | reverse = attr & 4; |
| 374 | 375 | pal|=8; //text pal bank |
| 375 | 376 | } |
| r10174 | r10175 | |
| 392 | 393 | res_x = x*8+xi; |
| 393 | 394 | res_y = y*y_height+yi; |
| 394 | 395 | |
| 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 | } |
| 397 | 404 | 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 | } |
| 399 | 411 | |
| 400 | 412 | if((res_x)<=machine->primary_screen->visible_area().max_x && (res_y)<=machine->primary_screen->visible_area().max_y) |
| 401 | 413 | if(color != -1) |
| r10174 | r10175 | |
| 416 | 428 | UINT8 y_height; |
| 417 | 429 | UINT8 attr; |
| 418 | 430 | UINT8 reverse; |
| 431 | UINT8 gfx_mode; |
| 419 | 432 | int pal; |
| 420 | 433 | |
| 421 | 434 | y_height = y_size == 20 ? 10 : 8; |
| r10174 | r10175 | |
| 432 | 445 | if(text_color_flag) |
| 433 | 446 | { |
| 434 | 447 | pal = (attr & 0xe0) >> 5; |
| 435 | | //gfx_mode = (attr & 0x10) >> 4; |
| 448 | gfx_mode = (attr & 0x10) >> 4; |
| 436 | 449 | reverse = 0; |
| 437 | 450 | pal|=8; //text pal bank |
| 438 | 451 | } |
| 439 | 452 | else |
| 440 | 453 | { |
| 441 | 454 | pal = (txt_color) ? 7 : 0; |
| 455 | gfx_mode = 0; |
| 442 | 456 | reverse = attr & 4; |
| 443 | 457 | pal|=8; //text pal bank |
| 444 | 458 | } |
| r10174 | r10175 | |
| 459 | 473 | res_x = (x*8)+xi*2; |
| 460 | 474 | res_y = (y*y_height)+yi; |
| 461 | 475 | |
| 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 | } |
| 464 | 484 | 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 | } |
| 466 | 491 | |
| 467 | 492 | if((res_x)<=machine->primary_screen->visible_area().max_x && (res_y)<=machine->primary_screen->visible_area().max_y) |
| 468 | 493 | if(color != -1) |
| r10174 | r10175 | |
| 1944 | 1969 | /* ROMs */ |
| 1945 | 1970 | #define PC8801_MEM_LOAD \ |
| 1946 | 1971 | 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 ) \ |
| 1950 | 1975 | ROM_REGION( 0xc000, "gvram", ROMREGION_ERASE00 ) |
| 1951 | 1976 | |
| 1952 | 1977 | |