Previous 15994 Revisions Next

r8702 Tuesday 3rd August, 2010 at 23:23:10 UTC by Angelo Salese
[PC-6001]: Added border color in 1bpp mode
[src/mess/drivers]pc6001.c

src/mess/drivers/pc6001.c
r8701r8702
1919        B) It's easier to me to see what the attribute vram does since I don't
2020           have any docs atm.
2121
22   TODO (game specific):
23   - 3D Asteroid Fire (and others): inputs doesn't work during gameplay;
24   - Arm Wrestling: returns an "?OM Error" during loading, it seems to be a N66
25     BASIC -> PC-6001Mk2 game actually;
26
2227==================================================================================
2328
2429    PC-6001 (1981-09):
r8701r8702
126131   pc6001_video_ram = auto_alloc_array(machine, UINT8, 0x2000); //0x400? We'll see...
127132}
128133
134/* FIXME: colors of this aren't 100% accurate */
129135static void draw_bitmap_1bpp(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int attr)
130136{
131137   int x,y,xi;
r8701r8702
256262   {
257263      for(x=0;x<320;x++)
258264      {
259         if(attr & 0x80 && (!(attr & 0x10)))
265         if((attr & 0x90) == 0x80) //2bpp
260266            color = ((attr & 2)<<1) + 8;
267         else if((attr & 0x90) == 0x90) //1bpp
268            color = (attr & 2) ? 7 : 2; //FIXME: colors aren't right there either
261269         else
262270            color = 0; //FIXME: other modes not yet checked
263271

Previous 15994 Revisions Next


© 1998-2018 The MESS Team