src/mess/drivers/pc8801.c
| r10083 | r10084 | |
| 17 | 17 | - CRTC really looks like to be a MCU; |
| 18 | 18 | - needs to support V1 / V2 properly; |
| 19 | 19 | - Add limits for extend work RAM; |
| 20 | - What happens to the palette contents when the analog/digital palette mode changes? |
| 20 | 21 | |
| 21 | 22 | per-game specific TODO: |
| 22 | 23 | - 100 Yen disk(s): reads kanji ports; |
| r10083 | r10084 | |
| 26 | 27 | - American Success: reads the light pen? |
| 27 | 28 | - Alphos: test case for text VRAM attributes; |
| 28 | 29 | - Alphos: text VRAM garbage during gameplay; |
| 29 | | - Alphos: background is supposed to be blue? |
| 30 | 30 | - Balance of Power: attempt to use the SIO port for mouse polling, worked around for now; |
| 31 | - Battle Entry: moans with a kanji msg then dies if you try to press either numpad 1 or 2 (what it basically asks by looking at the DASM) |
| 32 | - Bersekers Front Gaiden 3: checks CPU speed port and polls the PCG stuff too; |
| 33 | - Bishoujo Baseball Gakuen: checks ym2608 after intro screen; |
| 31 | 34 | - Bokosuka Wars: doesn't boot, floppy issue; |
| 32 | 35 | - Grobda: palette is ugly; |
| 36 | - Wanderers from Ys: floppy / irq issues? |
| 33 | 37 | - Xevious: game is too fast |
| 34 | 38 | |
| 35 | 39 | Notes: |
| r10083 | r10084 | |
| 139 | 143 | static UINT8 dmac_mode; |
| 140 | 144 | static UINT8 alu_ctrl1,alu_ctrl2; |
| 141 | 145 | static UINT8 extram_mode,extram_bank; |
| 146 | static int vblank_pos; |
| 142 | 147 | |
| 143 | 148 | static void pc8801_update_irq(running_machine *machine) |
| 144 | 149 | { |
| r10083 | r10084 | |
| 663 | 668 | ---- ---x (pbsy?) |
| 664 | 669 | */ |
| 665 | 670 | |
| 666 | | vrtc = (space->machine->primary_screen->vpos() < 200) ? 0 : 1; // vblank |
| 671 | vrtc = (space->machine->primary_screen->vpos() < vblank_pos) ? 0 : 1; // vblank |
| 667 | 672 | |
| 668 | 673 | return (vrtc << 5) | 0xc0; |
| 669 | 674 | } |
| r10083 | r10084 | |
| 720 | 725 | if((gfx_ctrl & 0x8) == 0) |
| 721 | 726 | visarea.max_y = 200 - 1; |
| 722 | 727 | |
| 728 | /* low screen res if graphic screen is color */ |
| 729 | if(gfx_ctrl & 0x10) |
| 730 | visarea.max_y = 200 - 1; |
| 731 | |
| 732 | vblank_pos = visarea.max_y + 1; |
| 733 | |
| 723 | 734 | machine->primary_screen->configure(640, 480, visarea, machine->primary_screen->frame_period().attoseconds); |
| 724 | 735 | } |
| 725 | 736 | |
| r10083 | r10084 | |
| 815 | 826 | |
| 816 | 827 | static WRITE8_HANDLER( pc8801_palram_w ) |
| 817 | 828 | { |
| 818 | | /* TODO: analog hook-up */ |
| 829 | static UINT8 b[8],r[8],g[8]; |
| 819 | 830 | |
| 820 | | if(offset) |
| 821 | | palette_set_color_rgb(space->machine, offset, pal1bit(data >> 1), pal1bit(data >> 2), pal1bit(data >> 0)); |
| 831 | if(misc_ctrl & 0x20) //analog palette |
| 832 | { |
| 833 | if((data & 0x40) == 0) |
| 834 | { |
| 835 | b[offset] = data & 0x7; |
| 836 | r[offset] = (data & 0x38) >> 3; |
| 837 | } |
| 838 | else |
| 839 | g[offset] = data & 0x7; |
| 840 | |
| 841 | } |
| 842 | else //digital palette |
| 843 | { |
| 844 | b[offset] = data & 1 ? 7 : 0; |
| 845 | r[offset] = data & 2 ? 7 : 0; |
| 846 | g[offset] = data & 4 ? 7 : 0; |
| 847 | } |
| 848 | |
| 849 | palette_set_color_rgb(space->machine, offset, pal3bit(r[offset]), pal3bit(g[offset]), pal3bit(b[offset])); |
| 822 | 850 | } |
| 823 | 851 | |
| 824 | 852 | static WRITE8_HANDLER( pc8801_layer_masking_w ) |