src/mess/drivers/pc8801.c
| r15897 | r15898 | |
| 16 | 16 | - waitstates; |
| 17 | 17 | - dipswitches needs to be controlled; |
| 18 | 18 | - below notes states that plain PC-8801 doesn't have a disk CPU, but the BIOS clearly checks the floppy ports. Wrong info? |
| 19 | | - Basic Nihongo disks shows that bitmap and text colors mixes with additive blending (basically if the tv charset has white then the bitmap draws |
| 20 | | with inverted color output). |
| 21 | 19 | - clean-ups, banking and video in particular (i.e. hook-ups with memory region should go away and device models should be used instead) |
| 22 | 20 | - OPNA needs dumping of YM2608 deltat ROM |
| 23 | 21 | - YMF288 support; |
| r15897 | r15898 | |
| 518 | 516 | UINT32 count; |
| 519 | 517 | UINT8 *gvram = machine().root_device().memregion("gvram")->base(); |
| 520 | 518 | UINT8 color; |
| 519 | UINT8 is_cursor; |
| 521 | 520 | |
| 522 | 521 | count = 0; |
| 523 | 522 | color = (m_gfx_ctrl & 1) ? 7 & ((m_layer_mask ^ 0xe) >> 1) : 7; |
| 523 | is_cursor = 0; |
| 524 | 524 | |
| 525 | 525 | for(y=0;y<200;y++) |
| 526 | 526 | { |
| 527 | 527 | for(x=0;x<640;x+=8) |
| 528 | 528 | { |
| 529 | if(!(m_gfx_ctrl & 1)) |
| 530 | is_cursor = calc_cursor_pos(x/8,y/lines_per_char,y & (lines_per_char-1)); |
| 531 | |
| 529 | 532 | for(xi=0;xi<8;xi++) |
| 530 | 533 | { |
| 531 | 534 | int pen; |
| 532 | 535 | |
| 533 | | pen = ((gvram[count+0x0000] >> (7-xi)) & 1) << 0; |
| 536 | pen = ((gvram[count+0x0000] >> (7-xi)) & 1); |
| 537 | if(is_cursor) |
| 538 | pen^=1; |
| 534 | 539 | |
| 535 | 540 | if((m_gfx_ctrl & 1)) |
| 536 | 541 | { |
| r15897 | r15898 | |
| 559 | 564 | { |
| 560 | 565 | for(x=0;x<640;x+=8) |
| 561 | 566 | { |
| 567 | if(!(m_gfx_ctrl & 1)) |
| 568 | is_cursor = calc_cursor_pos(x/8,y/lines_per_char,y & (lines_per_char-1)); |
| 569 | |
| 562 | 570 | for(xi=0;xi<8;xi++) |
| 563 | 571 | { |
| 564 | 572 | int pen; |
| 565 | 573 | |
| 566 | | pen = ((gvram[count+0x4000] >> (7-xi)) & 1) << 0; |
| 574 | pen = ((gvram[count+0x4000] >> (7-xi)) & 1); |
| 575 | if(is_cursor) |
| 576 | pen^=1; |
| 567 | 577 | |
| 568 | 578 | if(cliprect.contains(x+xi, y)) |
| 569 | 579 | bitmap.pix16(y, x+xi) = machine().pens[pen ? 7 : 0]; |
| r15897 | r15898 | |
| 651 | 661 | y_height = lines_per_char; |
| 652 | 662 | y_double = (pc8801_pixel_clock()); |
| 653 | 663 | y_step = (non_special) ? 80 : 120; // trusted by Elthlead |
| 664 | is_cursor = 0; |
| 654 | 665 | |
| 655 | 666 | for(yi=0;yi<y_height;yi++) |
| 656 | 667 | { |
| 657 | | is_cursor = calc_cursor_pos(x,y,yi); |
| 668 | if(m_gfx_ctrl & 1) |
| 669 | is_cursor = calc_cursor_pos(x,y,yi); |
| 658 | 670 | |
| 659 | 671 | for(xi=0;xi<8;xi++) |
| 660 | 672 | { |