src/mess/drivers/hector1.c
| r4892 | r4893 | |
| 1 | | /*************************************************************************** |
| 2 | | |
| 3 | | Hector 1 |
| 4 | | |
| 5 | | 12/05/2009 Skeleton driver. |
| 6 | | |
| 7 | | ****************************************************************************/ |
| 8 | | |
| 9 | | #include "driver.h" |
| 10 | | #include "cpu/z80/z80.h" |
| 11 | | |
| 12 | | static ADDRESS_MAP_START(hector1_mem, ADDRESS_SPACE_PROGRAM, 8) |
| 13 | | ADDRESS_MAP_UNMAP_HIGH |
| 14 | | AM_RANGE( 0x0000, 0x0fff ) AM_ROM |
| 15 | | AM_RANGE( 0x1000, 0xffff ) AM_RAM |
| 16 | | ADDRESS_MAP_END |
| 17 | | |
| 18 | | static ADDRESS_MAP_START( hector1_io , ADDRESS_SPACE_IO, 8) |
| 19 | | ADDRESS_MAP_UNMAP_HIGH |
| 20 | | ADDRESS_MAP_END |
| 21 | | |
| 22 | | /* Input ports */ |
| 23 | | INPUT_PORTS_START( hector1 ) |
| 24 | | INPUT_PORTS_END |
| 25 | | |
| 26 | | |
| 27 | | static MACHINE_RESET(hector1) |
| 28 | | { |
| 29 | | } |
| 30 | | |
| 31 | | static VIDEO_START( hector1 ) |
| 32 | | { |
| 33 | | } |
| 34 | | |
| 35 | | static VIDEO_UPDATE( hector1 ) |
| 36 | | { |
| 37 | | return 0; |
| 38 | | } |
| 39 | | |
| 40 | | static MACHINE_DRIVER_START( hector1 ) |
| 41 | | /* basic machine hardware */ |
| 42 | | MDRV_CPU_ADD("maincpu",Z80, XTAL_4MHz) |
| 43 | | MDRV_CPU_PROGRAM_MAP(hector1_mem) |
| 44 | | MDRV_CPU_IO_MAP(hector1_io) |
| 45 | | |
| 46 | | MDRV_MACHINE_RESET(hector1) |
| 47 | | |
| 48 | | /* video hardware */ |
| 49 | | MDRV_SCREEN_ADD("screen", RASTER) |
| 50 | | MDRV_SCREEN_REFRESH_RATE(50) |
| 51 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 52 | | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 53 | | MDRV_SCREEN_SIZE(640, 480) |
| 54 | | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 55 | | MDRV_PALETTE_LENGTH(2) |
| 56 | | MDRV_PALETTE_INIT(black_and_white) |
| 57 | | |
| 58 | | MDRV_VIDEO_START(hector1) |
| 59 | | MDRV_VIDEO_UPDATE(hector1) |
| 60 | | MACHINE_DRIVER_END |
| 61 | | |
| 62 | | static SYSTEM_CONFIG_START(hector1) |
| 63 | | SYSTEM_CONFIG_END |
| 64 | | |
| 65 | | /* ROM definition */ |
| 66 | | ROM_START( hector1 ) |
| 67 | | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) |
| 68 | | ROM_LOAD( "hector1.rom", 0x0000, 0x1000, CRC(3be6628b) SHA1(1c106d6732bed743d8283d39e5b8248271f18c42)) |
| 69 | | |
| 70 | | ROM_END |
| 71 | | |
| 72 | | /* Driver */ |
| 73 | | |
| 74 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 75 | | COMP( ????, hector1, 0, 0, hector1, hector1, 0, hector1, "Micronique", "Hector 1", GAME_NOT_WORKING) |
| 76 | | |
src/mess/drivers/interact.c
| r4892 | r4893 | |
| 2 | 2 | |
| 3 | 3 | Interact Family Computer |
| 4 | 4 | |
| 5 | | 12/05/2009 Skeleton driver. |
| 5 | 12/05/2009 Skeleton driver - Micko |
| 6 | 31/05/2009 Added notes and video - Robbbert |
| 6 | 7 | |
| 7 | | Assuming that a cart is loaded to 800-FFF. |
| 8 | | A test is made by the rom, it reads 800 if it is zero, jumps to it. |
| 8 | This was made by Interact Company of Ann Arbor, Michigan. However, |
| 9 | just after launch, the company collapsed. The liquidator, Protecto, |
| 10 | sold some and MicroVideo sold the rest. MicroVideo continued to |
| 11 | develop but went under 2 years later. Meanwhile, the French company |
| 12 | Lambda Systems sold a clone called the Victor Lambda. But, like the |
| 13 | Americans, Lambda Systems also collapsed. Another French company, |
| 14 | Micronique, purchased all remaining stock and intellectual rights |
| 15 | from Lambda Systems, Microvideo and Interact, and the computer becomes |
| 16 | wholly French. The computer has a name change, becoming the Hector. |
| 17 | This in turn gets upgraded (2HR, HRX, MX). The line is finally |
| 18 | retired in about 1985. |
| 9 | 19 | |
| 20 | TO DO: |
| 21 | Keyboard |
| 22 | Cassette |
| 23 | SN76477 / Sound |
| 24 | Colour |
| 25 | Cartload |
| 26 | |
| 10 | 27 | ****************************************************************************/ |
| 11 | 28 | |
| 12 | 29 | #include "driver.h" |
| 13 | | #include "cpu/z80/z80.h" |
| 30 | #include "cpu/i8085/i8085.h" |
| 31 | //#include "cpu/z80/z80.h" // later Hector models used Z80A @ 4mhz |
| 14 | 32 | |
| 33 | static READ8_HANDLER( interact_videoram_r ) |
| 34 | { |
| 35 | return videoram[offset]; |
| 36 | } |
| 37 | |
| 38 | static WRITE8_HANDLER( interact_videoram_w ) |
| 39 | { |
| 40 | videoram[offset] = data; |
| 41 | } |
| 42 | |
| 15 | 43 | static ADDRESS_MAP_START(interact_mem, ADDRESS_SPACE_PROGRAM, 8) |
| 16 | 44 | ADDRESS_MAP_UNMAP_HIGH |
| 17 | | AM_RANGE( 0x0000, 0x0fff ) AM_ROM |
| 18 | | AM_RANGE( 0x1000, 0xffff ) AM_RAM |
| 45 | AM_RANGE(0x0000,0x0fff) AM_ROM |
| 46 | AM_RANGE(0x4000,0x47ff) AM_RAM AM_READWRITE(interact_videoram_r,interact_videoram_w) AM_SIZE(&videoram_size) AM_BASE(&videoram) |
| 47 | AM_RANGE(0x4800,0x7fff) AM_RAM |
| 19 | 48 | ADDRESS_MAP_END |
| 20 | 49 | |
| 21 | 50 | static ADDRESS_MAP_START( interact_io , ADDRESS_SPACE_IO, 8) |
| r4892 | r4893 | |
| 37 | 66 | |
| 38 | 67 | static VIDEO_UPDATE( interact ) |
| 39 | 68 | { |
| 40 | | return 0; |
| 69 | UINT8 y,gfx; |
| 70 | UINT16 sy=0,ma=0,x; |
| 71 | |
| 72 | for (y = 0; y < 64; y++) |
| 73 | { |
| 74 | UINT16 *p = BITMAP_ADDR16(bitmap, sy++, 0); |
| 75 | |
| 76 | for (x = ma; x < ma + 32; x++) |
| 77 | { |
| 78 | gfx = videoram[x]; |
| 79 | |
| 80 | /* Display a scanline of a character (8 pixels) */ |
| 81 | *p = ( gfx & 0x01 ) ? 1 : 0; p++; |
| 82 | *p = ( gfx & 0x02 ) ? 1 : 0; p++; |
| 83 | *p = ( gfx & 0x04 ) ? 1 : 0; p++; |
| 84 | *p = ( gfx & 0x08 ) ? 1 : 0; p++; |
| 85 | *p = ( gfx & 0x10 ) ? 1 : 0; p++; |
| 86 | *p = ( gfx & 0x20 ) ? 1 : 0; p++; |
| 87 | *p = ( gfx & 0x40 ) ? 1 : 0; p++; |
| 88 | *p = ( gfx & 0x80 ) ? 1 : 0; p++; |
| 89 | } |
| 90 | ma+=32; |
| 91 | } |
| 92 | return 0; |
| 41 | 93 | } |
| 42 | 94 | |
| 43 | 95 | static MACHINE_DRIVER_START( interact ) |
| 44 | | /* basic machine hardware */ |
| 45 | | MDRV_CPU_ADD("maincpu",Z80, XTAL_4MHz) |
| 46 | | MDRV_CPU_PROGRAM_MAP(interact_mem) |
| 47 | | MDRV_CPU_IO_MAP(interact_io) |
| 96 | /* basic machine hardware */ |
| 97 | MDRV_CPU_ADD("maincpu",8080, XTAL_2MHz) |
| 98 | MDRV_CPU_PROGRAM_MAP(interact_mem) |
| 99 | MDRV_CPU_IO_MAP(interact_io) |
| 48 | 100 | |
| 49 | | MDRV_MACHINE_RESET(interact) |
| 101 | MDRV_MACHINE_RESET(interact) |
| 50 | 102 | |
| 51 | | /* video hardware */ |
| 52 | | MDRV_SCREEN_ADD("screen", RASTER) |
| 53 | | MDRV_SCREEN_REFRESH_RATE(50) |
| 54 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 55 | | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 56 | | MDRV_SCREEN_SIZE(640, 480) |
| 57 | | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 58 | | MDRV_PALETTE_LENGTH(2) |
| 59 | | MDRV_PALETTE_INIT(black_and_white) |
| 103 | /* video hardware */ |
| 104 | MDRV_SCREEN_ADD("screen", RASTER) |
| 105 | MDRV_SCREEN_REFRESH_RATE(60) |
| 106 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 107 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 108 | MDRV_SCREEN_SIZE(256, 79) |
| 109 | MDRV_SCREEN_VISIBLE_AREA(0, 224, 0, 78) |
| 110 | MDRV_PALETTE_LENGTH(2) // 8 colours, but only 4 at a time |
| 111 | MDRV_PALETTE_INIT(black_and_white) |
| 60 | 112 | |
| 61 | | MDRV_VIDEO_START(interact) |
| 62 | | MDRV_VIDEO_UPDATE(interact) |
| 113 | MDRV_VIDEO_START(interact) |
| 114 | MDRV_VIDEO_UPDATE(interact) |
| 63 | 115 | MACHINE_DRIVER_END |
| 64 | 116 | |
| 65 | 117 | static SYSTEM_CONFIG_START(interact) |
| r4892 | r4893 | |
| 71 | 123 | ROM_LOAD( "interact.rom", 0x0000, 0x0800, CRC(1aa50444) SHA1(405806c97378abcf7c7b0d549430c78c7fc60ba2)) |
| 72 | 124 | ROM_END |
| 73 | 125 | |
| 126 | ROM_START( hector1 ) |
| 127 | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) |
| 128 | ROM_LOAD( "hector1.rom", 0x0000, 0x1000, CRC(3be6628b) SHA1(1c106d6732bed743d8283d39e5b8248271f18c42)) |
| 129 | ROM_END |
| 130 | |
| 131 | |
| 74 | 132 | /* Driver */ |
| 75 | 133 | |
| 76 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 77 | | COMP( ????, interact, 0, 0, interact, interact, 0, interact, "Interact", "Interact Family Computer", GAME_NOT_WORKING) |
| 134 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 135 | COMP(1979, interact, 0, 0, interact, interact, 0, interact, "Interact", "Interact Family Computer", GAME_NOT_WORKING) |
| 136 | COMP(????, hector1, interact, 0, interact, interact, 0, interact, "Micronique", "Hector 1", GAME_NOT_WORKING) |
| 78 | 137 | |