Previous 15994 Revisions Next

r9998 Tuesday 11th January, 2011 at 23:35:01 UTC by Angelo Salese
[PC-8801]: Some cheesy testing that allows Tobira to have correct colors
[src/mess/drivers]pc8801.c
[src/mess/video]pc8801.c

src/mess/video/pc8801.c
r9997r9998
617617                        cg = (((state->gVRAM[0x0000 + x + y * 2 * 80 + gy * 80] << gx) & 0x80) >> 7) |
618618                           (((state->gVRAM[0x4000 + x + y * 2 * 80 + gy * 80] << gx) & 0x80) >> 6) |
619619                           (((state->gVRAM[0x8000 + x + y * 2 * 80 + gy * 80] << gx) & 0x80) >> 5);
620                        pc8801_plot_pixel(state->wbm1, x * 8 + gx, y * 4 + gy * 2, cg);
621                        pc8801_plot_pixel(state->wbm1, x * 8 + gx, y * 4 + gy * 2 + 1, 17);
620                        pc8801_plot_pixel(state->wbm1, x * 8 + gx, y * 4 + gy * 2, (cg & 0xf) + 0x20);
621                        pc8801_plot_pixel(state->wbm1, x * 8 + gx, y * 4 + gy * 2 + 1, (cg & 0xf) + 0x20);
622622                     }
623623                  }
624624                  break;
r9997r9998
10611061      state->pal[offset].g = (data & 4) ? 0xff : 0x00;
10621062   }
10631063   colortable_palette_set_color(space->machine->colortable, palno, MAKE_RGB(state->pal[offset].r, state->pal[offset].g, state->pal[offset].b));
1064   palette_set_color(space->machine, palno + 0x20, MAKE_RGB(state->pal[offset].r, state->pal[offset].g, state->pal[offset].b));
10641065}
src/mess/drivers/pc8801.c
r9997r9998
609609   MCFG_SCREEN_SIZE(640, 220)
610610   MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 200-1)
611611   MCFG_GFXDECODE( pc8801 )
612   MCFG_PALETTE_LENGTH(32)
612   MCFG_PALETTE_LENGTH(32+16)
613613   MCFG_PALETTE_INIT( pc8801 )
614614
615615   MCFG_VIDEO_START(pc8801)
r9997r9998
619619   MCFG_SPEAKER_STANDARD_MONO("mono")
620620   MCFG_SOUND_ADD(YM2203_TAG, YM2203, 3993600)
621621   MCFG_SOUND_CONFIG(pc88_ym2203_intf)   /* Should be accurate */
622   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
622   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
623623   MCFG_SOUND_ADD("beep", BEEP, 0)
624624   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
625625

Previous 15994 Revisions Next


© 1998-2018 The MESS Team