hash/intv.hsi
| r3323 | r3324 | |
| 25 | 25 | </hash> |
| 26 | 26 | <hash crc32="b45633cf" name="All-Star Major League Baseball (Mattel)"> |
| 27 | 27 | <year>1983</year> |
| 28 | <extrainfo>0 84 210 0 0 0 0</extrainfo> |
| 28 | 29 | </hash> |
| 29 | 30 | <hash crc32="6f91fbc1" name="Armor Battle (Mattel)"> |
| 30 | 31 | <year>1978</year> |
| r3323 | r3324 | |
| 37 | 38 | </hash> |
| 38 | 39 | <hash crc32="13ff363c" name="Atlantis (Imagic) [!]"> |
| 39 | 40 | <year>1981</year> |
| 41 | <extrainfo>0 68 0 0 0 0 0</extrainfo> |
| 40 | 42 | </hash> |
| 41 | 43 | <hash crc32="b35c1101" name="Auto Racing (Mattel)"> |
| 42 | 44 | <year>1979</year> |
| 43 | 45 | </hash> |
| 44 | 46 | <hash crc32="8ad19ab3" name="B-17 Bomber (Mattel) [!]"> |
| 45 | 47 | <year>1981</year> |
| 48 | <extrainfo>0 84 210 0 0 0 2</extrainfo> |
| 46 | 49 | </hash> |
| 47 | 50 | <hash crc32="dab36628" name="Baseball (Mattel)"> |
| 48 | 51 | <year>1978</year> |
| r3323 | r3324 | |
| 52 | 55 | </hash> |
| 53 | 56 | <hash crc32="c047d487" name="Beauty and the Beast (Imagic) [!]"> |
| 54 | 57 | <year>1982</year> |
| 58 | <extrainfo>0 68 0 0 0 0 0</extrainfo> |
| 55 | 59 | </hash> |
| 56 | 60 | <hash crc32="b03f739b" name="Blockade Runner (Interphase)"> |
| 57 | 61 | <year>1983</year> |
| 58 | 62 | </hash> |
| 59 | 63 | <hash crc32="515e1d7e" name="Body Slam - Super Pro Wrestling (Intv Corp)"> |
| 60 | 64 | <year>1988</year> |
| 65 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 61 | 66 | </hash> |
| 62 | 67 | <hash crc32="32697b72" name="Bomb Squad (Mattel) [!]"> |
| 63 | 68 | <year>1982</year> |
| 69 | <extrainfo>0 84 210 0 0 0 2</extrainfo> |
| 64 | 70 | </hash> |
| 65 | 71 | <hash crc32="18e08520" name="Bouncing Pixels by JRMZ Electronics (PD)"> |
| 66 | 72 | <year>1999</year> |
| r3323 | r3324 | |
| 73 | 79 | </hash> |
| 74 | 80 | <hash crc32="999cceed" name="Bump 'N' Jump (Mattel)"> |
| 75 | 81 | <year>1982-83</year> |
| 82 | <extrainfo>0 84 210 242 0 0 0</extrainfo> |
| 76 | 83 | </hash> |
| 77 | 84 | <hash crc32="43806375" name="BurgerTime! (Mattel)"> |
| 78 | 85 | <year>1982</year> |
| r3323 | r3324 | |
| 85 | 92 | </hash> |
| 86 | 93 | <hash crc32="d5363b8c" name="Centipede (Atarisoft)"> |
| 87 | 94 | <year>1983</year> |
| 95 | <extrainfo>0 100 0 0 0 0 0</extrainfo> |
| 88 | 96 | </hash> |
| 89 | 97 | <hash crc32="4cc46a04" name="Championship Tennis (Mattel)"> |
| 90 | 98 | <year>1985</year> |
| 99 | <extrainfo>0 84 212 0 0 0 0</extrainfo> |
| 91 | 100 | </hash> |
| 92 | 101 | <hash crc32="36e1d858" name="Checkers (Mattel)"> |
| 93 | 102 | <year>1979</year> |
| 94 | 103 | </hash> |
| 95 | 104 | <hash crc32="0bf464c6" name="Chip Shot - Super Pro Golf (Intv Corp)"> |
| 96 | 105 | <year>1987</year> |
| 106 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 97 | 107 | </hash> |
| 98 | 108 | <hash crc32="3289c8ba" name="Commando (Mattel)"> |
| 99 | 109 | <year>1987</year> |
| 110 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 100 | 111 | </hash> |
| 101 | 112 | <hash crc32="4b23a757" name="Congo Bongo (Sega)"> |
| 102 | 113 | <year>1983</year> |
| 114 | <extrainfo>0 86 0 0 0 0 0</extrainfo> |
| 103 | 115 | </hash> |
| 104 | 116 | <hash crc32="e1ee408f" name="Crazy Clones (PD)"> |
| 105 | 117 | <year>1981</year> |
| 106 | 118 | </hash> |
| 107 | 119 | <hash crc32="6802b191" name="Deep Pockets - Super Pro Pool and Billiards (Realtime) [!]"> |
| 108 | 120 | <year>1990</year> |
| 121 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 109 | 122 | </hash> |
| 110 | 123 | <hash crc32="d8f99aa2" name="Defender (Atarisoft)"> |
| 111 | 124 | <year>1983</year> |
| 125 | <extrainfo>0 86 0 0 0 0 0</extrainfo> |
| 112 | 126 | </hash> |
| 113 | 127 | <hash crc32="5e6a8cd8" name="Demon Attack (Imagic) [!]"> |
| 114 | 128 | <year>1982</year> |
| 129 | <extrainfo>0 68 0 0 0 0 0</extrainfo> |
| 115 | 130 | </hash> |
| 116 | 131 | <hash crc32="159af7f7" name="Dig Dug (Intv Corp)"> |
| 117 | 132 | <year>1987</year> |
| 133 | <extrainfo>0 86 146 0 0 0 0</extrainfo> |
| 118 | 134 | </hash> |
| 119 | 135 | <hash crc32="13ee56f1" name="Diner (Intv Corp)"> |
| 120 | 136 | <year>1987</year> |
| 137 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 121 | 138 | </hash> |
| 122 | 139 | <hash crc32="c30f61c0" name="Donkey Kong (Coleco)"> |
| 123 | 140 | <year>1982</year> |
| r3323 | r3324 | |
| 196 | 213 | </hash> |
| 197 | 214 | <hash crc32="ff83ff80" name="Hover Force (Intv Corp)"> |
| 198 | 215 | <year>1986</year> |
| 216 | <extrainfo>0 84 148 210 0 0 0</extrainfo> |
| 199 | 217 | </hash> |
| 200 | 218 | <hash crc32="a3147630" name="Hypnotic Lights (Mattel)"> |
| 201 | 219 | <year>1981</year> |
| r3323 | r3324 | |
| 232 | 250 | </hash> |
| 233 | 251 | <hash crc32="c83eea4c" name="Intellivision Test Cartridge and Baseball (Mattel)"> |
| 234 | 252 | <year>1978</year> |
| 253 | <extrainfo>0 82 114 0 0 0 0</extrainfo> |
| 235 | 254 | </hash> |
| 236 | 255 | <hash crc32="0de7579d" name="IntelliVoice BIOS (Mattel)"> |
| 237 | 256 | <year>1981</year> |
| 238 | 257 | </hash> |
| 239 | 258 | <hash crc32="ee5f1be2" name="Jetsons, The - Ways With Words (Mattel)"> |
| 240 | 259 | <year>1983</year> |
| 260 | <extrainfo>0 84 210 0 0 0 1</extrainfo> |
| 241 | 261 | </hash> |
| 242 | 262 | <hash crc32="4422868e" name="King of the Mountain (Mattel)"> |
| 243 | 263 | <year>1982</year> |
| 264 | <extrainfo>0 84 212 0 0 0 0</extrainfo> |
| 244 | 265 | </hash> |
| 245 | 266 | <hash crc32="8c9819a2" name="Kool-Aid Man (Mattel)"> |
| 246 | 267 | <year>1983</year> |
| r3323 | r3324 | |
| 250 | 271 | </hash> |
| 251 | 272 | <hash crc32="3825c25b" name="Land Battle (Mattel)"> |
| 252 | 273 | <year>1982</year> |
| 274 | <extrainfo>0 84 0 0 0 212 0</extrainfo> |
| 253 | 275 | </hash> |
| 254 | 276 | <hash crc32="604611c0" name="Las Vegas Blackjack and Poker (Mattel)"> |
| 255 | 277 | <year>1979</year> |
| r3323 | r3324 | |
| 280 | 302 | </hash> |
| 281 | 303 | <hash crc32="573b9b6d" name="Masters of the Universe - The Power of He-Man! (Mattel)"> |
| 282 | 304 | <year>1983</year> |
| 305 | <extrainfo>0 84 210 242 0 0 0</extrainfo> |
| 283 | 306 | </hash> |
| 284 | 307 | <hash crc32="7d0f8162" name="Maze Demo #1 by JRMZ Electronics (PD)"> |
| 285 | 308 | <year>2000</year> |
| r3323 | r3324 | |
| 289 | 312 | </hash> |
| 290 | 313 | <hash crc32="ff68aa22" name="Melody Blaster (Mattel) [!]"> |
| 291 | 314 | <year>1983</year> |
| 315 | <extrainfo>0 84 210 0 0 0 1</extrainfo> |
| 292 | 316 | </hash> |
| 293 | 317 | <hash crc32="e00e23e7" name="Mickey's Hello World (PD)"> |
| 294 | 318 | <year>1999</year> |
| r3323 | r3324 | |
| 298 | 322 | </hash> |
| 299 | 323 | <hash crc32="9d57498f" name="Mind Strike! (Mattel) [!]"> |
| 300 | 324 | <year>1982</year> |
| 325 | <extrainfo>0 84 210 0 0 0 1</extrainfo> |
| 301 | 326 | </hash> |
| 302 | 327 | <hash crc32="bd731e3c" name="Minotaur (Mattel)"> |
| 303 | 328 | <year>1981</year> |
| r3323 | r3324 | |
| 325 | 350 | </hash> |
| 326 | 351 | <hash crc32="bef0b0c7" name="Mr. Basic Meets Bits 'N Bytes (Mattel) [!]"> |
| 327 | 352 | <year>1983</year> |
| 353 | <extrainfo>0 84 210 0 0 0 1</extrainfo> |
| 328 | 354 | </hash> |
| 329 | 355 | <hash crc32="0b50a367" name="Mr. Basic Meets Bits 'N Bytes (Mattel)"> |
| 330 | 356 | <year>1983</year> |
| 331 | 357 | <status>Known Bad Dump</status> |
| 358 | <extrainfo>0 84 210 0 0 0 1</extrainfo> |
| 332 | 359 | </hash> |
| 333 | 360 | <hash crc32="dbab54ca" name="NASL Soccer (Mattel)"> |
| 334 | 361 | <year>1979</year> |
| r3323 | r3324 | |
| 350 | 377 | </hash> |
| 351 | 378 | <hash crc32="e5d1a8d2" name="Number Jumble (Mattel) [!]"> |
| 352 | 379 | <year>1983</year> |
| 380 | <extrainfo>0 84 210 242 0 0 0</extrainfo> |
| 353 | 381 | </hash> |
| 354 | 382 | <hash crc32="a21c31c3" name="Pac-Man (Atarisoft)"> |
| 355 | 383 | <year>1983</year> |
| 384 | <extrainfo>0 86 0 0 0 0 0</extrainfo> |
| 356 | 385 | </hash> |
| 357 | 386 | <hash crc32="6e4e8eb4" name="Pac-Man (Intv Corp)"> |
| 358 | 387 | <year>1983</year> |
| 388 | <extrainfo>0 86 0 0 0 0 0</extrainfo> |
| 359 | 389 | </hash> |
| 360 | 390 | <hash crc32="169e3584" name="PBA Bowling (Mattel)"> |
| 361 | 391 | <year>1980</year> |
| r3323 | r3324 | |
| 365 | 395 | </hash> |
| 366 | 396 | <hash crc32="d7c5849c" name="Pinball (Mattel)"> |
| 367 | 397 | <year>1981</year> |
| 398 | <extrainfo>0 84 210 0 0 0 0</extrainfo> |
| 368 | 399 | </hash> |
| 369 | 400 | <hash crc32="9c75efcc" name="Pitfall! (Activision) [!]"> |
| 370 | 401 | <year>1982</year> |
| 371 | 402 | </hash> |
| 372 | 403 | <hash crc32="bb939881" name="Pole Position (Intv Corp)"> |
| 373 | 404 | <year>1986</year> |
| 405 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 374 | 406 | </hash> |
| 375 | 407 | <hash crc32="a982e8d5" name="Pong (PD)"> |
| 376 | 408 | <year>1999</year> |
| r3323 | r3324 | |
| 413 | 445 | </hash> |
| 414 | 446 | <hash crc32="e9e3f60d" name="Scooby Doo's Maze Chase (Mattel)"> |
| 415 | 447 | <year>1983</year> |
| 448 | <extrainfo>0 84 148 0 0 0 1</extrainfo> |
| 416 | 449 | </hash> |
| 417 | 450 | <hash crc32="99ae29a9" name="Sea Battle (Mattel)"> |
| 418 | 451 | <year>1980</year> |
| r3323 | r3324 | |
| 434 | 467 | </hash> |
| 435 | 468 | <hash crc32="800b572f" name="Slam Dunk - Super Pro Basketball (Intv Corp)"> |
| 436 | 469 | <year>1987</year> |
| 470 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 437 | 471 | </hash> |
| 438 | 472 | <hash crc32="ba68ff28" name="Slap Shot - Super Pro Hockey (Intv Corp)"> |
| 439 | 473 | <year>1987</year> |
| r3323 | r3324 | |
| 443 | 477 | </hash> |
| 444 | 478 | <hash crc32="72c2a343" name="Song Player - Back in the USSR (PD)"> |
| 445 | 479 | <year>1999</year> |
| 480 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 446 | 481 | </hash> |
| 447 | 482 | <hash crc32="e7c04ab6" name="Song Player - Closing Time (PD)"> |
| 448 | 483 | <year>2001</year> |
| 484 | <extrainfo></extrainfo> |
| 449 | 485 | </hash> |
| 450 | 486 | <hash crc32="5e3130e1" name="Song Player - Copacabana (PD)"> |
| 451 | 487 | <year>1999</year> |
| 488 | <extrainfo>0 84 146 0 0 0 1</extrainfo> |
| 452 | 489 | </hash> |
| 453 | 490 | <hash crc32="c91b1d79" name="Song Player - Creep (PD)"> |
| 454 | 491 | <year>1999</year> |
| 492 | <extrainfo>0 84 0 0 0 0 1</extrainfo> |
| 455 | 493 | </hash> |
| 456 | 494 | <hash crc32="82d2e346" name="Song Player - Nut March (PD)"> |
| 457 | 495 | <year>1999</year> |
| 496 | <extrainfo>0 84 0 0 0 0 1</extrainfo> |
| 458 | 497 | </hash> |
| 459 | 498 | <hash crc32="fcf06a8b" name="Song Player - Nut Reed (PD)"> |
| 460 | 499 | <year>1999</year> |
| 500 | <extrainfo>0 84 0 0 0 0 1</extrainfo> |
| 461 | 501 | </hash> |
| 462 | 502 | <hash crc32="5914220a" name="Song Player - Nut Trep (PD)"> |
| 463 | 503 | <year>1999</year> |
| 504 | <extrainfo>0 84 0 0 0 0 1</extrainfo> |
| 464 | 505 | </hash> |
| 465 | 506 | <hash crc32="71f5be4e" name="Song Player - Nut Waltz (PD)"> |
| 466 | 507 | <year>1999</year> |
| 508 | <extrainfo>0 84 148 0 0 0 1</extrainfo> |
| 467 | 509 | </hash> |
| 468 | 510 | <hash crc32="437c0e2d" name="Song Player - Secret Agent Man (PD)"> |
| 469 | 511 | <year>1999</year> |
| 512 | <extrainfo>0 84 148 0 0 0 1</extrainfo> |
| 470 | 513 | </hash> |
| 471 | 514 | <hash crc32="da5d77ea" name="Song Player - Take on Me 3 (PD)"> |
| 472 | 515 | <year>1999</year> |
| 516 | <extrainfo>0 84 0 0 0 0 1</extrainfo> |
| 473 | 517 | </hash> |
| 474 | 518 | <hash crc32="10d721ca" name="Song Player - Take on Me 6 (PD)"> |
| 475 | 519 | <year>1999</year> |
| 520 | <extrainfo>0 84 0 0 0 0 1</extrainfo> |
| 476 | 521 | </hash> |
| 477 | 522 | <hash crc32="cc6f4f90" name="Song Player - Too Sexy (PD)"> |
| 478 | 523 | <year>1999</year> |
| 524 | <extrainfo>0 84 0 0 0 0 1</extrainfo> |
| 479 | 525 | </hash> |
| 480 | 526 | <hash crc32="e8b8eba5" name="Space Armada (Mattel)"> |
| 481 | 527 | <year>1981</year> |
| r3323 | r3324 | |
| 491 | 537 | </hash> |
| 492 | 538 | <hash crc32="3784dc52" name="Space Spartans (Mattel) [!]"> |
| 493 | 539 | <year>1981</year> |
| 540 | <extrainfo>0 84 0 0 0 0 2</extrainfo> |
| 494 | 541 | </hash> |
| 495 | 542 | <hash crc32="a95021fc" name="Spiker! - Super Pro Volleyball (Intv Corp)"> |
| 496 | 543 | <year>1988</year> |
| 544 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 497 | 545 | </hash> |
| 498 | 546 | <hash crc32="b745c1ca" name="Stadium Mud Buggies (Intv Corp)"> |
| 499 | 547 | <year>1988</year> |
| 548 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 500 | 549 | </hash> |
| 501 | 550 | <hash crc32="2deacd15" name="Stampede (Activision) [!]"> |
| 502 | 551 | <year>1982</year> |
| r3323 | r3324 | |
| 521 | 570 | </hash> |
| 522 | 571 | <hash crc32="16bfb8eb" name="Super Pro Decathlon (Intv Corp)"> |
| 523 | 572 | <year>1988</year> |
| 573 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 524 | 574 | </hash> |
| 525 | 575 | <hash crc32="32076e9d" name="Super Pro Football (Intv Corp)"> |
| 526 | 576 | <year>1986</year> |
| 577 | <extrainfo>0 84 148 0 0 0 0</extrainfo> |
| 527 | 578 | </hash> |
| 528 | 579 | <hash crc32="51b82eb7" name="Super Soccer (Mattel)"> |
| 529 | 580 | <year>1983</year> |
| 581 | <extrainfo>0 84 210 242 0 0 0</extrainfo> |
| 530 | 582 | </hash> |
| 531 | 583 | <hash crc32="15e88fce" name="Swords and Serpents (Imagic) [!]"> |
| 532 | 584 | <year>1982</year> |
| r3323 | r3324 | |
| 542 | 594 | </hash> |
| 543 | 595 | <hash crc32="d6495910" name="Thin Ice (Prototype) (Intv Corp) [!]"> |
| 544 | 596 | <year>1983</year> |
| 597 | <extrainfo>0 84 210 242 0 0 0</extrainfo> |
| 545 | 598 | </hash> |
| 546 | 599 | <hash crc32="c1f1ca74" name="Thunder Castle (Mattel)"> |
| 547 | 600 | <year>1982</year> |
| 601 | <extrainfo>0 84 210 242 0 0 0</extrainfo> |
| 548 | 602 | </hash> |
| 549 | 603 | <hash crc32="d1d352a0" name="Tower of Doom (Intv Corp)"> |
| 550 | 604 | <year>1986</year> |
| 605 | <extrainfo>0 84 148 210 242 0 0</extrainfo> |
| 551 | 606 | </hash> |
| 552 | 607 | <hash crc32="1ac989e2" name="Triple Action (Mattel)"> |
| 553 | 608 | <year>1981</year> |
| 554 | 609 | </hash> |
| 555 | 610 | <hash crc32="095638c0" name="Triple Challenge (Intv Corp)"> |
| 556 | 611 | <year>1986</year> |
| 612 | <extrainfo>0 84 148 193 210 0 0</extrainfo> |
| 557 | 613 | </hash> |
| 558 | 614 | <hash crc32="ca447bbd" name="TRON - Deadly Discs (Mattel)"> |
| 559 | 615 | <year>1981</year> |
| r3323 | r3324 | |
| 566 | 622 | </hash> |
| 567 | 623 | <hash crc32="07fb9435" name="TRON - Solar Sailer (Mattel)"> |
| 568 | 624 | <year>1982</year> |
| 625 | <extrainfo>0 84 210 0 0 0 2</extrainfo> |
| 569 | 626 | </hash> |
| 570 | 627 | <hash crc32="6f23a741" name="Tropical Trouble (Imagic) [!]"> |
| 571 | 628 | <year>1982</year> |
| r3323 | r3324 | |
| 584 | 641 | </hash> |
| 585 | 642 | <hash crc32="752fd927" name="USCF Chess (Mattel)"> |
| 586 | 643 | <year>1981</year> |
| 644 | <extrainfo>0 84 0 0 0 212 0</extrainfo> |
| 587 | 645 | </hash> |
| 588 | 646 | <hash crc32="f9e0789e" name="Utopia (Mattel)"> |
| 589 | 647 | <year>1981</year> |
| 590 | 648 | </hash> |
| 591 | 649 | <hash crc32="a4a20354" name="Vectron (Mattel)"> |
| 592 | 650 | <year>1982</year> |
| 651 | <extrainfo>0 84 210 0 0 0 0</extrainfo> |
| 593 | 652 | </hash> |
| 594 | 653 | <hash crc32="6efa67b2" name="Venture (Coleco)"> |
| 595 | 654 | <year>1982</year> |
| r3323 | r3324 | |
| 599 | 658 | </hash> |
| 600 | 659 | <hash crc32="15d9d27a" name="World Cup Football (Nice Ideas)"> |
| 601 | 660 | <year>1985</year> |
| 661 | <extrainfo>0 84 210 242 0 0 0</extrainfo> |
| 602 | 662 | </hash> |
| 603 | 663 | <hash crc32="c2063c08" name="World Series Major League Baseball (Mattel) [!]"> |
| 604 | 664 | <year>1983</year> |
| 665 | <extrainfo>1 84 210 226 242 0 0</extrainfo> |
| 605 | 666 | </hash> |
| 606 | 667 | <hash crc32="a12c27e1" name="World Series Major League Baseball (Mattel)"> |
| 607 | 668 | <year>1983</year> |
| 608 | 669 | <status>Known Bad Dump</status> |
| 670 | <extrainfo>1 84 210 226 242 0 0</extrainfo> |
| 609 | 671 | </hash> |
| 610 | 672 | <hash crc32="24b667b9" name="Worm Whomper (Activision) [!]"> |
| 611 | 673 | <year>1983</year> |
src/mess/machine/intv.c
| r3323 | r3324 | |
| 4 | 4 | #include "cpu/cp1610/cp1610.h" |
| 5 | 5 | #include "image.h" |
| 6 | 6 | |
| 7 | #define INTELLIVOICE_MASK 0x02 |
| 8 | #define ECS_MASK 0x01 |
| 9 | |
| 7 | 10 | UINT8 intv_gramdirty; |
| 8 | 11 | UINT8 intv_gram[512]; |
| 9 | 12 | UINT8 intv_gramdirtybytes[512]; |
| r3323 | r3324 | |
| 316 | 319 | intv_ram16[offset] = data&0xffff; |
| 317 | 320 | } |
| 318 | 321 | |
| 319 | | static int intv_load_rom_file(const device_config *image, int required) |
| 322 | static int intv_load_rom_file(const device_config *image) |
| 320 | 323 | { |
| 321 | | int i; |
| 324 | int i,j; |
| 322 | 325 | |
| 323 | 326 | UINT8 temp; |
| 324 | 327 | UINT8 num_segments; |
| r3323 | r3324 | |
| 332 | 335 | UINT8 low_byte; |
| 333 | 336 | |
| 334 | 337 | UINT8 *memory = memory_region(image->machine, "main"); |
| 335 | | |
| 336 | | image_fread(image, &temp,1); /* header */ |
| 337 | | if (temp != 0xa8) |
| 338 | const char *filetype = image_filetype(image); |
| 339 | |
| 340 | /* if it is in .rom format, we enter here */ |
| 341 | if (!mame_stricmp (filetype, "rom")) |
| 338 | 342 | { |
| 339 | | return INIT_FAIL; |
| 340 | | } |
| 343 | image_fread(image, &temp, 1); /* header */ |
| 344 | if (temp != 0xa8) |
| 345 | { |
| 346 | return INIT_FAIL; |
| 347 | } |
| 341 | 348 | |
| 342 | | image_fread(image, &num_segments,1); |
| 349 | image_fread(image, &num_segments, 1); |
| 343 | 350 | |
| 344 | | image_fread(image, &temp,1); |
| 345 | | if (temp != (num_segments ^ 0xff)) |
| 346 | | { |
| 347 | | return INIT_FAIL; |
| 351 | image_fread(image, &temp, 1); |
| 352 | if (temp != (num_segments ^ 0xff)) |
| 353 | { |
| 354 | return INIT_FAIL; |
| 355 | } |
| 356 | |
| 357 | for (i = 0; i < num_segments; i++) |
| 358 | { |
| 359 | image_fread(image, &start_seg, 1); |
| 360 | current_address = start_seg * 0x100; |
| 361 | |
| 362 | image_fread(image, &end_seg, 1); |
| 363 | end_address = end_seg * 0x100 + 0xff; |
| 364 | |
| 365 | while (current_address <= end_address) |
| 366 | { |
| 367 | image_fread(image, &low_byte, 1); |
| 368 | memory[(current_address << 1) + 1] = low_byte; |
| 369 | image_fread(image, &high_byte, 1); |
| 370 | memory[current_address << 1] = high_byte; |
| 371 | current_address++; |
| 372 | } |
| 373 | |
| 374 | /* Here we should calculate and compare the CRC16... */ |
| 375 | image_fread(image, &temp, 1); |
| 376 | image_fread(image, &temp, 1); |
| 377 | } |
| 378 | |
| 379 | /* Access tables and fine address restriction tables are not supported ATM */ |
| 380 | for (i = 0; i < (16 + 32 + 2); i++) |
| 381 | { |
| 382 | image_fread(image, &temp, 1); |
| 383 | } |
| 384 | return INIT_PASS; |
| 348 | 385 | } |
| 349 | | |
| 350 | | for(i=0;i<num_segments;i++) |
| 386 | /* otherwise, we load it as a .bin file, using extrainfo from intv.hsi in place of .cfg */ |
| 387 | else |
| 351 | 388 | { |
| 352 | | image_fread(image,&start_seg,1); |
| 353 | | current_address = start_seg*0x100; |
| 389 | /* This code is a blatant hack, due to impossibility to load a separate .cfg file in MESS. */ |
| 390 | /* It shall be eventually replaced by the .xml loading */ |
| 354 | 391 | |
| 355 | | image_fread(image,&end_seg,1); |
| 356 | | end_address = end_seg*0x100 + 0xff; |
| 392 | /* extrainfo format */ |
| 393 | // 1. mapper number (to deal with bankswitch). no bankswitch is mapper 0 (most games). |
| 394 | // 2.->5. current images have at most 4 chunks of data. we store here block size and location to load |
| 395 | // (value & 0xf0) >> 4 is the location / 0x1000 |
| 396 | // (value & 0x0f) is the size / 0x800 |
| 397 | // 6. some images have a ram chunk. as above we store location and size in 8 bits |
| 398 | // 7. extra = 1 ECS, 2 Intellivoice |
| 399 | int start, size; |
| 400 | int mapper, rom[5], ram, extra; |
| 357 | 401 | |
| 358 | | while(current_address <= end_address) |
| 402 | if (!image_extrainfo(image)) |
| 359 | 403 | { |
| 360 | | image_fread(image,&low_byte,1); |
| 361 | | memory[(current_address<<1)+1] = low_byte; |
| 362 | | image_fread(image,&high_byte,1); |
| 363 | | memory[current_address<<1] = high_byte; |
| 364 | | current_address++; |
| 404 | /* If no extrainfo, we assume a single 0x2000 chunk at 0x5000 */ |
| 405 | for (i = 0; i < 0x2000; i++ ) |
| 406 | { |
| 407 | image_fread(image, &low_byte, 1); |
| 408 | memory[((0x5000 + i) << 1) + 1] = low_byte; |
| 409 | image_fread(image, &high_byte, 1); |
| 410 | memory[(0x5000 + i) << 1] = high_byte; |
| 411 | } |
| 365 | 412 | } |
| 413 | else |
| 414 | { |
| 415 | sscanf(image_extrainfo(image),"%d %d %d %d %d %d %d", &mapper, &rom[0], &rom[1], &rom[2], |
| 416 | &rom[3], &ram, &extra); |
| 366 | 417 | |
| 367 | | image_fread(image,&temp,1); |
| 368 | | image_fread(image,&temp,1); |
| 369 | | } |
| 418 | // logerror("extrainfo: %d %d %d %d %d %d %d \n", mapper, rom[0], rom[1], rom[2], |
| 419 | // rom[3], ram, extra); |
| 370 | 420 | |
| 371 | | for(i=0;i<(16+32+2);i++) |
| 372 | | { |
| 373 | | image_fread(image,&temp,1); |
| 421 | if (mapper) |
| 422 | { |
| 423 | logerror("Bankswitch not yet implemented! \n"); |
| 424 | } |
| 425 | |
| 426 | if (ram) |
| 427 | { |
| 428 | logerror("RAM banks not yet implemented! \n"); |
| 429 | } |
| 430 | |
| 431 | if (extra & INTELLIVOICE_MASK) |
| 432 | { |
| 433 | logerror("Intellivoice support not yet implemented! \n"); |
| 434 | } |
| 435 | |
| 436 | if (extra & ECS_MASK) |
| 437 | { |
| 438 | logerror("ECS support is only partial\n"); |
| 439 | logerror("(even with the intvkbd driver)! \n"); |
| 440 | } |
| 441 | |
| 442 | for (j = 0; j < 4; j++) |
| 443 | { |
| 444 | start = (( rom[j] & 0xf0 ) >> 4) * 0x1000; |
| 445 | size = ( rom[j] & 0x0f ) * 0x800; |
| 446 | |
| 447 | /* some cart has to be loaded to 0x4800, but none goes to 0x4000. Hence, we use */ |
| 448 | /* 0x04 << 4 in extrainfo (to reduce the stored values) and fix the value here. */ |
| 449 | if (start == 0x4000) start += 0x800; |
| 450 | |
| 451 | // logerror("step %d: %d %d \n", j, start / 0x1000, size / 0x1000); |
| 452 | |
| 453 | for (i = 0; i < size; i++ ) |
| 454 | { |
| 455 | image_fread(image, &low_byte, 1); |
| 456 | memory[((start + i) << 1) + 1] = low_byte; |
| 457 | image_fread(image, &high_byte, 1); |
| 458 | memory[(start + i) << 1] = high_byte; |
| 459 | } |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | return INIT_PASS; |
| 374 | 464 | } |
| 375 | | return INIT_PASS; |
| 376 | 465 | } |
| 377 | 466 | |
| 378 | 467 | DEVICE_START( intv_cart ) |
| r3323 | r3324 | |
| 382 | 471 | UINT8 *memory = memory_region(device->machine, "main"); |
| 383 | 472 | |
| 384 | 473 | /* assume playcable is absent */ |
| 385 | | memory[0x4800<<1] = 0xff; |
| 386 | | memory[(0x4800<<1)+1] = 0xff; |
| 474 | memory[0x4800 << 1] = 0xff; |
| 475 | memory[(0x4800 << 1) + 1] = 0xff; |
| 387 | 476 | |
| 388 | 477 | /* assume keyboard is absent */ |
| 389 | | memory[0x7000<<1] = 0xff; |
| 390 | | memory[(0x7000<<1)+1] = 0xff; |
| 478 | memory[0x7000 << 1] = 0xff; |
| 479 | memory[(0x7000 << 1) + 1] = 0xff; |
| 480 | |
| 391 | 481 | return DEVICE_START_OK; |
| 392 | 482 | } |
| 393 | 483 | |
| r3323 | r3324 | |
| 398 | 488 | UINT8 *memory = memory_region(image->machine, "main"); |
| 399 | 489 | |
| 400 | 490 | /* assume playcable is absent */ |
| 401 | | memory[0x4800<<1] = 0xff; |
| 402 | | memory[(0x4800<<1)+1] = 0xff; |
| 491 | memory[0x4800 << 1] = 0xff; |
| 492 | memory[(0x4800 << 1) + 1] = 0xff; |
| 403 | 493 | |
| 404 | 494 | /* assume keyboard is absent */ |
| 405 | | memory[0x7000<<1] = 0xff; |
| 406 | | memory[(0x7000<<1)+1] = 0xff; |
| 495 | memory[0x7000 << 1] = 0xff; |
| 496 | memory[(0x7000 << 1) + 1] = 0xff; |
| 407 | 497 | |
| 408 | | return intv_load_rom_file(image, 1); |
| 498 | return intv_load_rom_file(image); |
| 409 | 499 | } |
| 410 | 500 | |
| 411 | 501 | #ifdef UNUSED_FUNCTION |
| r3323 | r3324 | |
| 496 | 586 | UINT8 *memory = memory_region(image->machine, "main"); |
| 497 | 587 | |
| 498 | 588 | /* assume playcable is absent */ |
| 499 | | memory[0x4800<<1] = 0xff; |
| 500 | | memory[(0x4800<<1)+1] = 0xff; |
| 589 | memory[0x4800 << 1] = 0xff; |
| 590 | memory[(0x4800 << 1) + 1] = 0xff; |
| 501 | 591 | |
| 502 | | intv_load_rom_file(image, 0); |
| 592 | intv_load_rom_file(image); |
| 503 | 593 | } |
| 504 | 594 | |
| 505 | 595 | if (id == 1) /* Keyboard component cartridge slot */ |
| r3323 | r3324 | |
| 507 | 597 | UINT8 *memory = memory_region(image->machine, "keyboard"); |
| 508 | 598 | |
| 509 | 599 | /* Assume an 8K cart, like BASIC */ |
| 510 | | image_fread(image,&memory[0xe000],0x2000); |
| 600 | image_fread(image, &memory[0xe000], 0x2000); |
| 511 | 601 | } |
| 512 | 602 | |
| 513 | 603 | return INIT_PASS; |