src/mess/video/vdc.c
| r997 | r998 | |
| 707 | 707 | line_buffer[ pixel ] = Machine->pens[color_base + vce.vce_data[c].w]; |
| 708 | 708 | pixel++; |
| 709 | 709 | if ( vdc[which].physical_width != 512 ) { |
| 710 | | if ( pixel < ( ( ( phys_x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 710 | while ( pixel < ( ( ( phys_x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 711 | 711 | drawn[ pixel ] = c ? 1 : 0; |
| 712 | 712 | if ( c || ! external_input ) |
| 713 | 713 | line_buffer[ pixel ] = Machine->pens[color_base + vce.vce_data[c].w]; |
| r997 | r998 | |
| 830 | 830 | if( priority || drawn[pixel_x] == 0 ) { |
| 831 | 831 | line_buffer[pixel_x] = Machine->pens[color_base + vce.vce_data[0x100 + (palette << 4) + buf[x]].w]; |
| 832 | 832 | if ( vdc[which].physical_width != 512 ) { |
| 833 | | if ( pixel_x + 1 < ( ( ( obj_x + x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 834 | | drawn[pixel_x + 1] = i + 2; |
| 835 | | line_buffer[pixel_x + 1] = Machine->pens[color_base + vce.vce_data[0x100 + (palette << 4) + buf[x]].w]; |
| 833 | int dp = 1; |
| 834 | while ( pixel_x + dp < ( ( ( obj_x + x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 835 | drawn[pixel_x + dp] = i + 2; |
| 836 | line_buffer[pixel_x + dp] = Machine->pens[color_base + vce.vce_data[0x100 + (palette << 4) + buf[x]].w]; |
| 837 | dp++; |
| 836 | 838 | } |
| 837 | 839 | } |
| 838 | 840 | } |
| r997 | r998 | |
| 847 | 849 | } |
| 848 | 850 | } |
| 849 | 851 | } |
| 850 | | pixel_x += 1; |
| 851 | 852 | if ( vdc[which].physical_width != 512 ) { |
| 852 | | if ( pixel_x < ( ( ( obj_x + x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 853 | | pixel_x += 1; |
| 854 | | } |
| 853 | pixel_x = ( ( obj_x + x + 1 ) * 512 ) / vdc[which].physical_width; |
| 854 | } else { |
| 855 | pixel_x += 1; |
| 855 | 856 | } |
| 856 | 857 | } |
| 857 | 858 | } |
| r997 | r998 | |
| 871 | 872 | if ( priority || drawn[pixel_x] == 0 ) { |
| 872 | 873 | line_buffer[pixel_x] = Machine->pens[color_base + vce.vce_data[0x100 + (palette << 4) + buf[x]].w]; |
| 873 | 874 | if ( vdc[which].physical_width != 512 ) { |
| 874 | | if ( pixel_x + 1 < ( ( ( obj_x + x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 875 | | drawn[pixel_x + 1] = i + 2; |
| 876 | | line_buffer[pixel_x + 1] = Machine->pens[color_base + vce.vce_data[0x100 + (palette << 4) + buf[x]].w]; |
| 875 | int dp = 1; |
| 876 | while ( pixel_x + dp < ( ( ( obj_x + x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 877 | drawn[pixel_x + dp] = i + 2; |
| 878 | line_buffer[pixel_x + dp] = Machine->pens[color_base + vce.vce_data[0x100 + (palette << 4) + buf[x]].w]; |
| 879 | dp++; |
| 877 | 880 | } |
| 878 | 881 | } |
| 879 | 882 | } |
| r997 | r998 | |
| 887 | 890 | } |
| 888 | 891 | } |
| 889 | 892 | } |
| 890 | | pixel_x += 1; |
| 891 | 893 | if ( vdc[which].physical_width != 512 ) { |
| 892 | | if ( pixel_x < ( ( ( obj_x + x + 1 ) * 512 ) / vdc[which].physical_width ) ) { |
| 893 | | pixel_x += 1; |
| 894 | | } |
| 894 | pixel_x = ( ( obj_x + x + 1 ) * 512 ) / vdc[which].physical_width; |
| 895 | } else { |
| 896 | pixel_x += 1; |
| 895 | 897 | } |
| 896 | 898 | } |
| 897 | 899 | |
| r997 | r998 | |
| 914 | 916 | if( priority || drawn[pixel_x] == 0 ) { |
| 915 | 917 | line_buffer[pixel_x] = Machine->pens[color_base + vce.vce_data[0x100 + (palette << 4) + buf[x]].w]; |
| 916 | 918 | if ( vdc[which].physical_width != 512 ) { |
| 917 | | if ( pixel_x + 1 < ( ( ( obj_x + x + 17 ) * 512 ) / vdc[which].physical_width ) ) { |
| 918 | | drawn[pixel_x + 1] = i + 2; |
| 919 | | line_buffer[pixel_x + 1] = Machine->pens[color_base + vce.vce_data[0x100 + (palette << 4) + buf[x]].w]; |
| 919 | int dp = 1; |
| 920 | while ( pixel_x + dp < ( ( ( obj_x + x + 17 ) * 512 ) / vdc[which].physical_width ) ) { |
| 921 | drawn[pixel_x + dp] = i + 2; |
| 922 | line_buffer[pixel_x + dp] = Machine->pens[color_base + vce.vce_data[0x100 + (palette << 4) + buf[x]].w]; |
| 923 | dp++; |
| 920 | 924 | } |
| 921 | 925 | } |
| 922 | 926 | } |
| r997 | r998 | |
| 930 | 934 | } |
| 931 | 935 | } |
| 932 | 936 | } |
| 933 | | pixel_x += 1; |
| 934 | 937 | if ( vdc[which].physical_width != 512 ) { |
| 935 | | if ( pixel_x < ( ( ( obj_x + x + 17 ) * 512 ) / vdc[which].physical_width ) ) { |
| 936 | | pixel_x += 1; |
| 937 | | } |
| 938 | pixel_x = ( ( obj_x + x + 17 ) * 512 ) / vdc[which].physical_width; |
| 939 | } else { |
| 940 | pixel_x += 1; |
| 938 | 941 | } |
| 939 | 942 | } |
| 940 | 943 | } |
src/mess/drivers/pce.c
| r997 | r998 | |
| 18 | 18 | - Add 6 button joystick support |
| 19 | 19 | - Add 263 line mode |
| 20 | 20 | - Sprite DMA should use vdc VRAM functions |
| 21 | - properly implement the pixel clocks instead of the simple scaling we do now |
| 21 | 22 | |
| 22 | 23 | Banking |
| 23 | 24 | ======= |
| 24 | 25 | |
| 25 | | Normally banks 00-F6 are assigned to regular HuCard ROM space. There |
| 26 | Normally address spacebanks 00-F6 are assigned to regular HuCard ROM space. There |
| 26 | 27 | are a couple of special situations: |
| 27 | 28 | |
| 28 | 29 | Street Fighter II: |
| r997 | r998 | |
| 266 | 267 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 267 | 268 | CONS( 1987, pce, 0, 0, pce, pce, pce, pce, "Nippon Electronic Company", "PC Engine", GAME_IMPERFECT_SOUND ) |
| 268 | 269 | CONS( 1989, tg16, pce, 0, pce, pce, tg16, pce, "Nippon Electronic Company", "TurboGrafx 16", GAME_IMPERFECT_SOUND ) |
| 269 | | CONS( 1989, sgx, pce, 0, sgx, pce, sgx, pce, "Nippon Electronic Company", "SuperGrafx", GAME_NOT_WORKING ) |
| 270 | CONS( 1989, sgx, pce, 0, sgx, pce, sgx, pce, "Nippon Electronic Company", "SuperGrafx", GAME_IMPERFECT_SOUND ) |
| 270 | 271 | |