src/mess/machine/abc99.c
| r9169 | r9170 | |
| 1 | 1 | #include "emu.h" |
| 2 | 2 | #include "abc99.h" |
| 3 | #include "cpu/mcs48/mcs48.h" |
| 3 | 4 | |
| 4 | | /* ROMs */ |
| 5 | /*------------------------------------------------- |
| 6 | ADDRESS_MAP( abc99_map ) |
| 7 | -------------------------------------------------*/ |
| 5 | 8 | |
| 9 | static ADDRESS_MAP_START( abc99_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 10 | AM_RANGE(0x000, 0xfff) AM_ROM |
| 11 | ADDRESS_MAP_END |
| 12 | |
| 13 | /*------------------------------------------------- |
| 14 | ADDRESS_MAP( abc99_io_map ) |
| 15 | -------------------------------------------------*/ |
| 16 | |
| 17 | static ADDRESS_MAP_START( abc99_io_map, ADDRESS_SPACE_IO, 8 ) |
| 18 | ADDRESS_MAP_END |
| 19 | |
| 20 | /*------------------------------------------------- |
| 21 | MACHINE_DRIVER( abc99 ) |
| 22 | -------------------------------------------------*/ |
| 23 | |
| 24 | static MACHINE_CONFIG_FRAGMENT( abc99 ) |
| 25 | MDRV_CPU_ADD("i8035", I8035, XTAL_4_608MHz) |
| 26 | MDRV_CPU_PROGRAM_MAP(abc99_map) |
| 27 | MDRV_CPU_IO_MAP(abc99_io_map) |
| 28 | MACHINE_CONFIG_END |
| 29 | |
| 30 | /*------------------------------------------------- |
| 31 | ROM( abc99 ) |
| 32 | -------------------------------------------------*/ |
| 33 | |
| 6 | 34 | ROM_START( abc99 ) |
| 7 | | ROM_REGION( 0x1800, "maincpu", 0 ) |
| 35 | ROM_REGION( 0x1800, "i8035", 0 ) |
| 8 | 36 | ROM_LOAD( "10681909.bin", 0x0000, 0x1000, CRC(ffe32a71) SHA1(fa2ce8e0216a433f9bbad0bdd6e3dc0b540f03b7) ) |
| 9 | 37 | ROM_LOAD( "10726864.bin", 0x1000, 0x0800, CRC(e33683ae) SHA1(0c1d9e320f82df05f4804992ef6f6f6cd20623f3) ) |
| 10 | 38 | ROM_END |
| 11 | 39 | |
| 12 | | /* Device Interface */ |
| 40 | /*------------------------------------------------- |
| 41 | DEVICE_START( abc99 ) |
| 42 | -------------------------------------------------*/ |
| 13 | 43 | |
| 14 | 44 | static DEVICE_START( abc99 ) |
| 15 | 45 | { |
| 16 | 46 | } |
| 17 | 47 | |
| 48 | /*------------------------------------------------- |
| 49 | DEVICE_GET_INFO( abc99 ) |
| 50 | -------------------------------------------------*/ |
| 51 | |
| 18 | 52 | DEVICE_GET_INFO( abc99 ) |
| 19 | 53 | { |
| 20 | 54 | switch (state) |
| 21 | 55 | { |
| 22 | 56 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 23 | 57 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break; |
| 24 | | |
| 25 | | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 58 | |
| 59 | /* --- the following bits of info are returned as pointers --- */ |
| 60 | case DEVINFO_PTR_ROM_REGION: info->romregion = rom_abc99; break; |
| 61 | case DEVINFO_PTR_MACHINE_CONFIG: info->machine_config = MACHINE_CONFIG_NAME(abc99); break; |
| 62 | |
| 63 | /* --- the following bits of info are returned as pointers to functions --- */ |
| 26 | 64 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(abc99); break; |
| 27 | 65 | case DEVINFO_FCT_STOP: /* Nothing */ break; |
| 28 | 66 | case DEVINFO_FCT_RESET: /* Nothing */ break; |
src/mess/drivers/abc1600.c
| r0 | r9170 | |
| 1 | #include "emu.h" |
| 2 | #include "cpu/m68000/m68000.h" |
| 3 | #include "machine/abc99.h" |
| 4 | |
| 5 | #define M68008_TAG "m68008" |
| 6 | |
| 7 | static ADDRESS_MAP_START( abc1600_mem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 8 | ADDRESS_MAP_END |
| 9 | |
| 10 | static INPUT_PORTS_START( abc1600 ) |
| 11 | INPUT_PORTS_END |
| 12 | |
| 13 | static VIDEO_UPDATE( abc1600 ) |
| 14 | { |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | static MACHINE_CONFIG_START( abc1600, driver_device ) |
| 19 | /* basic machine hardware */ |
| 20 | MDRV_CPU_ADD(M68008_TAG, M68008, 8000000) |
| 21 | MDRV_CPU_PROGRAM_MAP(abc1600_mem) |
| 22 | |
| 23 | /* video hardware */ |
| 24 | MDRV_SCREEN_ADD("screen", RASTER) |
| 25 | MDRV_SCREEN_REFRESH_RATE(50) |
| 26 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 27 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 28 | MDRV_SCREEN_SIZE(1024, 768) |
| 29 | MDRV_SCREEN_VISIBLE_AREA(0, 1024-1, 0, 768-1) |
| 30 | MDRV_PALETTE_LENGTH(2) |
| 31 | MDRV_PALETTE_INIT(black_and_white) |
| 32 | MDRV_VIDEO_UPDATE(abc1600) |
| 33 | |
| 34 | /* sound hardware */ |
| 35 | |
| 36 | /* devices */ |
| 37 | MDRV_ABC99_ADD |
| 38 | |
| 39 | /* internal ram */ |
| 40 | MDRV_RAM_ADD("messram") |
| 41 | MDRV_RAM_DEFAULT_SIZE("1M") |
| 42 | MACHINE_CONFIG_END |
| 43 | |
| 44 | ROM_START( abc1600 ) |
| 45 | ROM_REGION( 0x4000, M68008_TAG, 0 ) |
| 46 | ROM_LOAD( "bios", 0x0000, 0x4000, NO_DUMP ) |
| 47 | ROM_END |
| 48 | |
| 49 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 50 | COMP( 1985, abc1600, 0, 0, abc1600, abc1600, 0, "Luxor", "ABC 1600", GAME_NOT_WORKING | GAME_NO_SOUND ) |