Previous 15994 Revisions Next

r6731 Thursday 24th December, 2009 at 11:12:36 UTC by Robbbert
[ZX] Added rom mirror, this fixes ringo470
Restored the F4 character display
[src/mess/drivers]zx.c

src/mess/drivers/zx.c
r6730r6731
2121    - Many general fixes to pow3000/lambda.
2222    - Added sound to pc8300/pow3000/lambda.
2323
24    24/12/2009 (Robbbert)
25    - Added rom mirror, this fixes ringo470
26    - Added back the F4 character display
27
2428    To do / problems:
2529    - Some memory areas are not mirrored as they should.
2630    - Video hardware is not fully emulated, so it does not support pseudo hi-res and hi-res modes.
r6730r6731
4650/* Memory Maps */
4751
4852static ADDRESS_MAP_START( zx80_map, ADDRESS_SPACE_PROGRAM, 8 )
49   AM_RANGE(0x0000, 0x1fff) AM_ROM
50   AM_RANGE(0x2000, 0x3fff) AM_NOP
53   AM_RANGE(0x0000, 0x1fff) AM_ROM AM_MIRROR(0x2000)
5154   AM_RANGE(0xc000, 0xffff) AM_RAM_READ(zx_ram_r)
5255ADDRESS_MAP_END
5356
r6730r6731
291294INPUT_PORTS_END
292295
293296
297/* F4 character display */
298
299static const gfx_layout zx_gfx_layout =
300{
301   8, 8,                        /* 8x8 pixels */
302   64,                           /* 64 codes */
303   1,                           /* 1 bit per pixel */
304   {0},                        /* no bitplanes */
305   /* x offsets */
306   {0, 1, 2, 3, 4, 5, 6, 7},
307   /* y offsets */
308   {0 * 8, 1 * 8, 2 * 8, 3 * 8, 4 * 8, 5 * 8, 6 * 8, 7 * 8},
309   8 * 8                        /* eight bytes per code */
310};
311
312
313/* Graphics Decode Information */
314
315static GFXDECODE_START( zx80 )
316   GFXDECODE_ENTRY( "maincpu", 0x0e00, zx_gfx_layout,  0, 2 )
317GFXDECODE_END
318
319static GFXDECODE_START( zx81 )
320   GFXDECODE_ENTRY( "maincpu", 0x1e00, zx_gfx_layout,  0, 2 )
321GFXDECODE_END
322
323static GFXDECODE_START( pc8300 )
324   GFXDECODE_ENTRY( "gfx1", 0, zx_gfx_layout,  0, 2 )
325GFXDECODE_END
326
327
328
294329/* Palette Initialization */
295330
296331
r6730r6731
362397   MDRV_SCREEN_SIZE(ZX81_PIXELS_PER_SCANLINE, ZX81_PAL_SCANLINES)
363398   MDRV_SCREEN_VISIBLE_AREA(0, ZX81_PIXELS_PER_SCANLINE-1, 0, ZX81_PAL_SCANLINES-1)
364399
400   MDRV_GFXDECODE(zx80)
365401   MDRV_PALETTE_LENGTH(4)
366402   MDRV_PALETTE_INIT(zx80)
367403
r6730r6731
390426   MDRV_CPU_MODIFY("maincpu")
391427   MDRV_CPU_IO_MAP(zx81_io_map)
392428
429   MDRV_GFXDECODE(zx81)
430
393431   MDRV_CASSETTE_MODIFY( "cassette", zx81_cassette_config )
394432MACHINE_DRIVER_END
395433
r6730r6731
420458   MDRV_SCREEN_SIZE(ZX81_PIXELS_PER_SCANLINE, ZX81_NTSC_SCANLINES)
421459   MDRV_SCREEN_VISIBLE_AREA(0, ZX81_PIXELS_PER_SCANLINE-1, 0, ZX81_NTSC_SCANLINES-1)
422460
461   MDRV_GFXDECODE(pc8300)
423462   MDRV_PALETTE_INIT(zx80)
424463
425464   /* internal ram */
r6730r6731
435474
436475   MDRV_MACHINE_RESET(pow3000)
437476
477   MDRV_GFXDECODE(pc8300)
438478   MDRV_PALETTE_INIT(zx80)
439479
440480   /* internal ram */
r6730r6731
528568COMP( 1982, ts1000,     zx81,   0,      ts1000,     zx81,       zx,     0,    "Timex Sinclair",           "Timex Sinclair 1000", 0 )
529569COMP( 1983, ts1500,     zx81,   0,      ts1500,     zx81,       zx,     0,    "Timex Sinclair",           "Timex Sinclair 1500", 0 )
530570COMP( 1983, tk85,        zx81,   0,      ts1000,     zx81,       zx,     0,    "Microdigital",             "TK85",                0 )
531COMP( 1983, ringo470,   zx81,   0,      ts1000,     zx81,       zx,     0,    "Ritas do Brasil Ltda",     "Ringo 470", GAME_NOT_WORKING )
571COMP( 1983, ringo470,   zx81,   0,      ts1000,     zx81,       zx,     0,    "Ritas do Brasil Ltda",     "Ringo 470",           0 )
532572COMP( 1984, pc8300,     zx81,   0,      pc8300,     pc8300,     zx,     0,    "Your Computer",            "PC8300",              0 )
533COMP( 1983, pow3000,    zx81,   0,      pow3000,    pow3000,    zx,     0,      "Creon Enterprises",        "Power 3000",          0 )
534COMP( 1982, lambda,     zx81,   0,      pow3000,    pow3000,    zx,     0,      "Lambda Electronics Ltd",   "Lambda 8300",         0 )
535COMP( 1997, zx97,       zx81,   0,      zx81,       zx81,       zx,     0,    "Wilf Rigter",             "ZX97",     GAME_NOT_WORKING )
573COMP( 1983, pow3000,    zx81,   0,      pow3000,    pow3000,    zx,     0,    "Creon Enterprises",        "Power 3000",          0 )
574COMP( 1982, lambda,     zx81,   0,      pow3000,    pow3000,    zx,     0,    "Lambda Electronics Ltd",   "Lambda 8300",         0 )
575COMP( 1997, zx97,       zx81,   0,      zx81,       zx81,       zx,     0,    "Wilf Rigter",              "ZX97",     GAME_NOT_WORKING )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team