trunk/src/mame/drivers/sanremo.c
| r20715 | r20716 | |
| 1 | 1 | /****************************************************************************** |
| 2 | 2 | |
| 3 | | Number One |
| 4 | | |
| 5 | | 8bit gambling hardware. |
| 3 | Number One. |
| 6 | 4 | San Remo Games. |
| 7 | 5 | |
| 6 | 8bit amusement/gambling hardware. |
| 8 | 7 | |
| 8 | |
| 9 | 9 | Driver by Roberto Fresca. |
| 10 | 10 | |
| 11 | 11 | |
| r20715 | r20716 | |
| 34 | 34 | - 1x trimmer (volume) [P1] |
| 35 | 35 | |
| 36 | 36 | |
| 37 | | Graphics seems to have the insanely amount of 32 banks of 256 tiles, but with |
| 38 | | some scrambled logic (maybe driven through PLDs)... |
| 37 | Graphics seems to have the insanely amount of 32 banks of 256 tiles each, |
| 38 | driven by a 5-bit register/selector. |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | ******************************************************************************* |
| r20715 | r20716 | |
| 44 | 44 | ---------- |
| 45 | 45 | |
| 46 | 46 | You can switch the game to use numbers or cards through the Test Mode. |
| 47 | | To enter the Test Mode, just turn the DIP switch 7 ON. |
| 47 | To enter the Test Mode, just turn the DIP switch 7 ON. No credits should be |
| 48 | in the machine to get it working... |
| 48 | 49 | |
| 49 | 50 | |
| 50 | 51 | ******************************************************************************* |
| r20715 | r20716 | |
| 70 | 71 | - Added Button-Lamps layout. |
| 71 | 72 | - Complete lamps support. |
| 72 | 73 | - NVRAM support. |
| 74 | - Correct GFX banking. |
| 73 | 75 | |
| 76 | [2012/02/03] |
| 74 | 77 | |
| 78 | - Fixed graphics issues: |
| 79 | Latched the bank bits and stored them when the tiles are written. |
| 80 | - Hooked up intensity layer. |
| 81 | - Removed the imperfect gfx and game not working flags. |
| 82 | |
| 83 | |
| 75 | 84 | TODO: |
| 76 | 85 | |
| 77 | | - Fix GFX banking. |
| 78 | | - Hook the intensity layer. |
| 79 | 86 | - Figure out activity in some output ports. |
| 80 | 87 | |
| 81 | 88 | |
| r20715 | r20716 | |
| 84 | 91 | |
| 85 | 92 | #define MASTER_CLOCK XTAL_18MHz |
| 86 | 93 | |
| 94 | #define CPU_CLOCK MASTER_CLOCK/3 |
| 95 | #define SND_CLOCK MASTER_CLOCK/12 |
| 96 | #define CRTC_CLOCK MASTER_CLOCK/12 |
| 97 | |
| 87 | 98 | #include "emu.h" |
| 88 | 99 | #include "cpu/z80/z80.h" |
| 89 | 100 | #include "video/mc6845.h" |
| r20715 | r20716 | |
| 194 | 205 | xxx- ---- unknown |
| 195 | 206 | */ |
| 196 | 207 | banksel = data & 0x1f; |
| 197 | | |
| 198 | | // printf("BANKSEL %02x\n", data); |
| 199 | 208 | } |
| 200 | 209 | |
| 201 | 210 | |
| r20715 | r20716 | |
| 311 | 320 | }; |
| 312 | 321 | |
| 313 | 322 | |
| 314 | | |
| 315 | | |
| 316 | 323 | /************************************************** |
| 317 | 324 | * Graphics Decode Information * |
| 318 | 325 | **************************************************/ |
| 319 | 326 | |
| 320 | 327 | static GFXDECODE_START( sanremo ) |
| 321 | | GFXDECODE_ENTRY( "gfx", 0, tilelayout, 0, 1 ) // ok |
| 328 | GFXDECODE_ENTRY( "gfx", 0, tilelayout, 0, 1 ) |
| 322 | 329 | GFXDECODE_END |
| 323 | 330 | |
| 324 | 331 | |
| r20715 | r20716 | |
| 326 | 333 | * CRTC Interface * |
| 327 | 334 | ********************************************/ |
| 328 | 335 | |
| 336 | |
| 329 | 337 | static const mc6845_interface mc6845_intf = |
| 330 | 338 | /* |
| 331 | 339 | *** MC6845 init *** |
| r20715 | r20716 | |
| 371 | 379 | static MACHINE_CONFIG_START( sanremo, sanremo_state ) |
| 372 | 380 | |
| 373 | 381 | /* basic machine hardware */ |
| 374 | | MCFG_CPU_ADD("maincpu", Z80, MASTER_CLOCK/3) |
| 382 | MCFG_CPU_ADD("maincpu", Z80, CPU_CLOCK) |
| 375 | 383 | MCFG_CPU_PROGRAM_MAP(sanremo_map) |
| 376 | 384 | MCFG_CPU_IO_MAP(sanremo_portmap) |
| 377 | 385 | MCFG_CPU_VBLANK_INT_DRIVER("screen", sanremo_state, irq0_line_hold) |
| r20715 | r20716 | |
| 386 | 394 | MCFG_SCREEN_VISIBLE_AREA(0, 48*8-1, 0, 38*8-1) |
| 387 | 395 | MCFG_SCREEN_UPDATE_DRIVER(sanremo_state, screen_update_sanremo) |
| 388 | 396 | |
| 389 | | MCFG_MC6845_ADD("crtc", MC6845, MASTER_CLOCK/12, mc6845_intf) |
| 397 | MCFG_MC6845_ADD("crtc", MC6845, CRTC_CLOCK, mc6845_intf) |
| 390 | 398 | |
| 391 | 399 | MCFG_GFXDECODE(sanremo) |
| 392 | 400 | MCFG_PALETTE_LENGTH(0x10) |
| 393 | 401 | |
| 394 | 402 | /* sound hardware */ |
| 395 | 403 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 396 | | MCFG_SOUND_ADD("ay8910", AY8910, MASTER_CLOCK/12) |
| 404 | MCFG_SOUND_ADD("ay8910", AY8910, SND_CLOCK) |
| 397 | 405 | MCFG_SOUND_CONFIG(ay8910_config) |
| 398 | 406 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 399 | 407 | MACHINE_CONFIG_END |
| r20715 | r20716 | |
| 408 | 416 | ROM_LOAD( "no_g0.ic26", 0x0000, 0x8000, CRC(2d83646f) SHA1(d1fafcce44ed3ec3dd53d84338c42244ebfca820) ) |
| 409 | 417 | |
| 410 | 418 | ROM_REGION( 0x40000, "gfx", 0 ) |
| 411 | | ROM_LOAD( "no_i4.ic30", 0x00000, 0x10000, CRC(55b351a4) SHA1(b0c8a30dde076520234281da051f21f1b7cb3166) ) // i |
| 412 | | ROM_LOAD( "no_b4.ic27", 0x10000, 0x10000, CRC(e48b1c8a) SHA1(88f60268fd43c06e146d936a1bdc078c44e2a213) ) // b |
| 413 | | ROM_LOAD( "no_g4.ic28", 0x20000, 0x10000, CRC(4eea9a9b) SHA1(c86c083ccf08c3c310028920f9a0fe809fd7ccbe) ) // g |
| 414 | | ROM_LOAD( "no_r4.ic29", 0x30000, 0x10000, CRC(ab08cdaf) SHA1(e0518403039b6bada79ffe4c6bc22fbb64d16e43) ) // r |
| 419 | ROM_LOAD( "no_i4.ic30", 0x00000, 0x10000, CRC(55b351a4) SHA1(b0c8a30dde076520234281da051f21f1b7cb3166) ) // I |
| 420 | ROM_LOAD( "no_b4.ic27", 0x10000, 0x10000, CRC(e48b1c8a) SHA1(88f60268fd43c06e146d936a1bdc078c44e2a213) ) // B |
| 421 | ROM_LOAD( "no_g4.ic28", 0x20000, 0x10000, CRC(4eea9a9b) SHA1(c86c083ccf08c3c310028920f9a0fe809fd7ccbe) ) // G |
| 422 | ROM_LOAD( "no_r4.ic29", 0x30000, 0x10000, CRC(ab08cdaf) SHA1(e0518403039b6bada79ffe4c6bc22fbb64d16e43) ) // R |
| 415 | 423 | |
| 416 | 424 | ROM_REGION( 0x0800, "nvram", 0 ) /* default NVRAM */ |
| 417 | 425 | ROM_LOAD( "number1_nvram.bin", 0x0000, 0x0800, CRC(4ece7b39) SHA1(49815571d75a39ab67d26691f902dfbd4e05feb4) ) |
| r20715 | r20716 | |
| 427 | 435 | * Game Drivers * |
| 428 | 436 | *********************************************/ |
| 429 | 437 | |
| 430 | | /* YEAR NAME PARENT MACHINE INPUT STATE INIT ROT COMPANY FULLNAME FLAGS... LAYOUT */ |
| 431 | | GAMEL( 1996, number1, 0, sanremo, number1, driver_device, 0, ROT0, "San Remo Games", "Number One", GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING, layout_sanremo ) |
| 438 | /* YEAR NAME PARENT MACHINE INPUT STATE INIT ROT COMPANY FULLNAME FLAGS LAYOUT */ |
| 439 | GAMEL( 1996, number1, 0, sanremo, number1, driver_device, 0, ROT0, "San Remo Games", "Number One", 0, layout_sanremo ) |