Previous 15994 Revisions Next

r4822 Monday 25th May, 2009 at 06:36:16 UTC by Miodrag Milanović
[BCS3] switched colors (black on white, like on real machine, set proper frequency for CPU
[src/mess/drivers]bcs3.c

src/mess/drivers/bcs3.c
r4821r4822
236236               gfx = 0;
237237
238238            /* Display a scanline of a character (8 pixels) */
239            *p = ( gfx & 0x80 ) ? 1 : 0; p++;
240            *p = ( gfx & 0x40 ) ? 1 : 0; p++;
241            *p = ( gfx & 0x20 ) ? 1 : 0; p++;
242            *p = ( gfx & 0x10 ) ? 1 : 0; p++;
243            *p = ( gfx & 0x08 ) ? 1 : 0; p++;
244            *p = ( gfx & 0x04 ) ? 1 : 0; p++;
245            *p = ( gfx & 0x02 ) ? 1 : 0; p++;
246            *p = ( gfx & 0x01 ) ? 1 : 0; p++;
239            *p = ( gfx & 0x80 ) ? 0 : 1; p++;
240            *p = ( gfx & 0x40 ) ? 0 : 1; p++;
241            *p = ( gfx & 0x20 ) ? 0 : 1; p++;
242            *p = ( gfx & 0x10 ) ? 0 : 1; p++;
243            *p = ( gfx & 0x08 ) ? 0 : 1; p++;
244            *p = ( gfx & 0x04 ) ? 0 : 1; p++;
245            *p = ( gfx & 0x02 ) ? 0 : 1; p++;
246            *p = ( gfx & 0x01 ) ? 0 : 1; p++;
247247         }
248248      }
249249      ma+=28;
r4821r4822
281281               gfx = 0;
282282
283283            /* Display a scanline of a character (8 pixels) */
284            *p = ( gfx & 0x80 ) ? 1 : 0; p++;
285            *p = ( gfx & 0x40 ) ? 1 : 0; p++;
286            *p = ( gfx & 0x20 ) ? 1 : 0; p++;
287            *p = ( gfx & 0x10 ) ? 1 : 0; p++;
288            *p = ( gfx & 0x08 ) ? 1 : 0; p++;
289            *p = ( gfx & 0x04 ) ? 1 : 0; p++;
290            *p = ( gfx & 0x02 ) ? 1 : 0; p++;
291            *p = ( gfx & 0x01 ) ? 1 : 0; p++;
284            *p = ( gfx & 0x80 ) ? 0 : 1; p++;
285            *p = ( gfx & 0x40 ) ? 0 : 1; p++;
286            *p = ( gfx & 0x20 ) ? 0 : 1; p++;
287            *p = ( gfx & 0x10 ) ? 0 : 1; p++;
288            *p = ( gfx & 0x08 ) ? 0 : 1; p++;
289            *p = ( gfx & 0x04 ) ? 0 : 1; p++;
290            *p = ( gfx & 0x02 ) ? 0 : 1; p++;
291            *p = ( gfx & 0x01 ) ? 0 : 1; p++;
292292         }
293293      }
294294      ma+=30;
r4821r4822
324324               gfx = 0;
325325
326326            /* Display a scanline of a character (8 pixels) */
327            *p = ( gfx & 0x80 ) ? 1 : 0; p++;
328            *p = ( gfx & 0x40 ) ? 1 : 0; p++;
329            *p = ( gfx & 0x20 ) ? 1 : 0; p++;
330            *p = ( gfx & 0x10 ) ? 1 : 0; p++;
331            *p = ( gfx & 0x08 ) ? 1 : 0; p++;
332            *p = ( gfx & 0x04 ) ? 1 : 0; p++;
333            *p = ( gfx & 0x02 ) ? 1 : 0; p++;
334            *p = ( gfx & 0x01 ) ? 1 : 0; p++;
327            *p = ( gfx & 0x80 ) ? 0 : 1; p++;
328            *p = ( gfx & 0x40 ) ? 0 : 1; p++;
329            *p = ( gfx & 0x20 ) ? 0 : 1; p++;
330            *p = ( gfx & 0x10 ) ? 0 : 1; p++;
331            *p = ( gfx & 0x08 ) ? 0 : 1; p++;
332            *p = ( gfx & 0x04 ) ? 0 : 1; p++;
333            *p = ( gfx & 0x02 ) ? 0 : 1; p++;
334            *p = ( gfx & 0x01 ) ? 0 : 1; p++;
335335         }
336336      }
337337      ma+=41;
r4821r4822
367367               gfx = 0;
368368
369369            /* Display a scanline of a character (8 pixels) */
370            *p = ( gfx & 0x80 ) ? 1 : 0; p++;
371            *p = ( gfx & 0x40 ) ? 1 : 0; p++;
372            *p = ( gfx & 0x20 ) ? 1 : 0; p++;
373            *p = ( gfx & 0x10 ) ? 1 : 0; p++;
374            *p = ( gfx & 0x08 ) ? 1 : 0; p++;
375            *p = ( gfx & 0x04 ) ? 1 : 0; p++;
376            *p = ( gfx & 0x02 ) ? 1 : 0; p++;
377            *p = ( gfx & 0x01 ) ? 1 : 0; p++;
370            *p = ( gfx & 0x80 ) ? 0 : 1; p++;
371            *p = ( gfx & 0x40 ) ? 0 : 1; p++;
372            *p = ( gfx & 0x20 ) ? 0 : 1; p++;
373            *p = ( gfx & 0x10 ) ? 0 : 1; p++;
374            *p = ( gfx & 0x08 ) ? 0 : 1; p++;
375            *p = ( gfx & 0x04 ) ? 0 : 1; p++;
376            *p = ( gfx & 0x02 ) ? 0 : 1; p++;
377            *p = ( gfx & 0x01 ) ? 0 : 1; p++;
378378         }
379379      }
380380      ma+=30;
r4821r4822
384384
385385static MACHINE_DRIVER_START( bcs3 )
386386   /* basic machine hardware */
387   MDRV_CPU_ADD("maincpu",Z80, XTAL_4MHz)
387   MDRV_CPU_ADD("maincpu",Z80, XTAL_5MHz /2)
388388   MDRV_CPU_PROGRAM_MAP(bcs3_mem)
389389   MDRV_CPU_IO_MAP(bcs3_io)
390390
r4821r4822
419419static MACHINE_DRIVER_START( bcs3b )
420420   MDRV_IMPORT_FROM( bcs3 )
421421   /* basic machine hardware */
422   MDRV_CPU_MODIFY( "maincpu" )
422   MDRV_CPU_REPLACE( "maincpu", Z80, XTAL_7MHz / 2)
423423   MDRV_CPU_PROGRAM_MAP(bcs3b_mem)
424424
425425   MDRV_SCREEN_MODIFY("screen")

Previous 15994 Revisions Next


© 1998-2018 The MESS Team