Previous 15994 Revisions Next

r1727 Sunday 24th February, 2008 at 17:47:57 UTC by Wilbert Pol
[ODYSSEY2] Added Philips Videopac.
[docs]messnew.txt
[src/mess/drivers]odyssey2.c
[src/mess/video]odyssey2.c

src/mess/video/odyssey2.c
r1726r1727
455455VIDEO_UPDATE( odyssey2 )
456456{
457457   int i, j, x, y;
458   UINT8 bg[300][320]= { { 0 } };
458   UINT8 bg[313][320]= { { 0 } };
459459
460460   assert(bitmap->width<=ARRAY_LENGTH(bg[0]) && bitmap->height<=ARRAY_LENGTH(bg));
461461
src/mess/drivers/odyssey2.c
r1726r1727
151151
152152    /* video hardware */
153153   MDRV_SCREEN_ADD("main", RASTER)
154   MDRV_SCREEN_REFRESH_RATE(60)
155   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
156154   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
155   MDRV_SCREEN_RAW_PARAMS( XTAL_7_15909MHz/2, 227, 0, 159, 263, 0, 239 )
157156
158   MDRV_SCREEN_SIZE(320,300)
159   MDRV_SCREEN_VISIBLE_AREA(0,160-1,0,240-1)
160157   MDRV_GFXDECODE( odyssey2 )
161158   MDRV_PALETTE_LENGTH(24)
162159   MDRV_PALETTE_INIT( odyssey2 )
r1726r1727
171168   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
172169MACHINE_DRIVER_END
173170
171static MACHINE_DRIVER_START( videopac )
172   /* basic machine hardware */
173   MDRV_CPU_ADD(I8048, ( XTAL_17_73447MHz / 3 ) )
174   MDRV_CPU_PROGRAM_MAP(odyssey2_mem, 0)
175   MDRV_CPU_IO_MAP(odyssey2_io, 0)
176   MDRV_CPU_VBLANK_INT(odyssey2_line, 262)
177   MDRV_INTERLEAVE(1)
178
179   MDRV_MACHINE_RESET( odyssey2 )
180
181   /* video hardware */
182   MDRV_SCREEN_ADD("main", RASTER)
183   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
184   MDRV_SCREEN_RAW_PARAMS( XTAL_17_73447MHz/5, 227, 0, 159, 313, 0, 239 )
185
186   MDRV_GFXDECODE( odyssey2 )
187   MDRV_PALETTE_LENGTH(24)
188   MDRV_PALETTE_INIT( odyssey2 )
189
190   MDRV_VIDEO_START( odyssey2 )
191   MDRV_VIDEO_UPDATE( odyssey2 )
192
193   /* sound hardware */
194   MDRV_SPEAKER_STANDARD_MONO("mono")
195   MDRV_SOUND_ADD(CUSTOM, 0)
196   MDRV_SOUND_CONFIG(odyssey2_sound_interface)
197   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
198MACHINE_DRIVER_END
199
174200ROM_START (odyssey2)
175201    ROM_REGION(0x10000,REGION_CPU1,0)    /* safer for the memory handler/bankswitching??? */
176202    ROM_LOAD ("o2bios.rom", 0x0000, 0x0400, CRC(8016a315) SHA1(b2e1955d957a475de2411770452eff4ea19f4cee))
r1726r1727
180206   ROM_CART_LOAD(0, "bin", 0x0000, 0x2000, ROM_MIRROR)
181207ROM_END
182208
209ROM_START (videopac)
210   ROM_REGION(0x10000,REGION_CPU1,0)    /* safer for the memory handler/bankswitching??? */
211   ROM_SYSTEM_BIOS( 0, "g7000", "g7000" )
212   ROMX_LOAD ("o2bios.rom", 0x0000, 0x0400, CRC(8016a315) SHA1(b2e1955d957a475de2411770452eff4ea19f4cee), ROM_BIOS(1))
213   ROM_SYSTEM_BIOS( 1, "c52", "c52" )
214   ROMX_LOAD ("c52.bin", 0x0000, 0x0400, CRC(a318e8d6) SHA1(a6120aed50831c9c0d95dbdf707820f601d9452e), ROM_BIOS(2))
215   ROM_REGION(0x100, REGION_GFX1, 0)
216
217   ROM_REGION(0x2000, REGION_USER1, 0)
218   ROM_CART_LOAD(0, "bin", 0x0000, 0x2000, ROM_MIRROR)
219ROM_END
220
183221static void odyssey2_cartslot_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info)
184222{
185223   /* cartslot */
r1726r1727
201239SYSTEM_CONFIG_END
202240
203241/*     YEAR  NAME      PARENT   COMPAT  MACHINE   INPUT     INIT      CONFIG    COMPANY     FULLNAME     FLAGS */
204COMP( 1982, odyssey2, 0,      0,      odyssey2, odyssey2, odyssey2, odyssey2, "Magnavox", "Odyssey 2", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND )
205/* philips g7000/videopac */
242COMP( 1978, odyssey2, 0,      0,      odyssey2, odyssey2, odyssey2, odyssey2, "Magnavox", "Odyssey 2", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND )
243COMP( 1979, videopac, odyssey2,   0,      videopac, odyssey2, odyssey2, odyssey2, "Philips", "Videopac G7000/C52", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND )
244
docs/messnew.txt
r1726r1727
22
33New System Drivers Supported (in no particular order):
44------------------------------------------------------
5(none)
5- Philips Videopac G7000/C52 [Wilbert Pol]
66
77
88

Previous 15994 Revisions Next


© 1998-2018 The MESS Team