src/mess/drivers/genesis.c
| r2253 | r2254 | |
| 63 | 63 | static int is_squir = 0; |
| 64 | 64 | static int squirrel_king_extra = 0; |
| 65 | 65 | static int is_smous = 0; |
| 66 | static int is_smb = 0; |
| 66 | 67 | |
| 67 | 68 | static UINT8 *genesis_sram; |
| 68 | 69 | static int genesis_sram_start; |
| r2253 | r2254 | |
| 327 | 328 | is_smous = 1; |
| 328 | 329 | } |
| 329 | 330 | } |
| 331 | if (length == 0x200000) |
| 332 | { |
| 333 | static unsigned char smbsig[] = { 0x0c, 0x39, 0x00, 0x0c, 0x00, 0xff}; // cmpi.b #$C,($FF1130).l |
| 334 | |
| 335 | if (!memcmp(&ROM[0xc8786+relocate],&smbsig[0],sizeof(smbsig))) |
| 336 | { |
| 337 | is_smb = 1; |
| 338 | } |
| 339 | } |
| 340 | |
| 330 | 341 | } |
| 331 | 342 | |
| 332 | 343 | ROM = memory_region(REGION_CPU1); /* 68000 ROM region */ |
| r2253 | r2254 | |
| 516 | 527 | return 0xd300; |
| 517 | 528 | } |
| 518 | 529 | |
| 530 | // Super Mario Bros handler from HazeMD |
| 531 | READ16_HANDLER( smbro_prot_r ) |
| 532 | { |
| 533 | return 0xc; |
| 534 | } |
| 535 | |
| 536 | |
| 519 | 537 | // Smart Mouse handler from HazeMD |
| 520 | 538 | READ16_HANDLER( smous_prot_r ) |
| 521 | 539 | { |
| r2253 | r2254 | |
| 644 | 662 | { |
| 645 | 663 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x400000, 0x400007, 0, 0, smous_prot_r ); |
| 646 | 664 | } |
| 665 | if (is_smb) |
| 666 | { |
| 667 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0xa13000, 0xa13001, 0, 0, smbro_prot_r ); |
| 668 | } |
| 669 | |
| 647 | 670 | /* install NOP handler for TMSS */ |
| 648 | 671 | memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0xA14000, 0xA14003, 0, 0, genesis_TMSS_bank_w); |
| 649 | 672 | |