diff --git a/src/mame/drivers/tarzan.c b/src/mame/drivers/tarzan.c index e7cd673b24a..a99e8af6249 100644 --- a/src/mame/drivers/tarzan.c +++ b/src/mame/drivers/tarzan.c @@ -1,74 +1,16 @@ /* Old IGS game called Tarzan, don't know much about it, could be gambling */ -/* CPU might not be z80 */ +/* CPU might not be z80 (maybe z180) + + decryption is incomplete?, first part of code doesn't seem right? + + graphics area also encrypted + +*/ #include "driver.h" #include "cpu/z80/z80.h" -#if 0 -static UINT16 *file1_data; -static int file1_size; - -static UINT16 *result_data; - -static int decrypt_tarzan() -{ - int fd; - int i; - char msg[512]; - - if(argc != 3) { - fprintf(stderr, "Usage:\n%s \n", argv[0]); - exit(1); - } - - sprintf(msg, "Open %s", argv[1]); - fd = open(argv[1], O_RDONLY); - if(fd<0) { - perror(msg); - exit(2); - } - - file1_size = lseek(fd, 0, SEEK_END); - lseek(fd, 0, SEEK_SET); - - file1_data = malloc_or_die(file1_size); - read(fd, file1_data, file1_size); - close(fd); - - result_data = malloc_or_die(file1_size); - for(i=0; igamedrv->name); + fp=fopen(filename, "w+b"); + if (fp) + { + fwrite(ROM, 0x40000, 1, fp); + fclose(fp); + } + } + #endif +} ROM_START( tarzan ) ROM_REGION( 0x040000, "main", 0 ) ROM_LOAD( "0228-u16.bin", 0x00000, 0x040000, CRC(e6c552a5) SHA1(f156de9459833474c85a1f5b35917881b390d34c) ) - ROM_REGION( 0x080000, "user1", 0 ) + ROM_REGION( 0x080000, "gfx1", 0 ) ROM_LOAD( "0228-u21.bin", 0x00000, 0x080000, CRC(80aaece4) SHA1(07cad92492c5de36c3915867ed4c6544b1a30c07) ) - ROM_REGION( 0x080000, "user2", 0 ) + ROM_REGION( 0x080000, "gfx2", 0 ) ROM_LOAD( "0228-u6.bin", 0x00000, 0x080000, CRC(55e94832) SHA1(b15409f4f1264b6d1218d5dc51c5bd1de2e40284) ) ROM_END -GAME( 199?, tarzan, 0, tarzan, tarzan, 0, ROT0, "IGS", "Tarzan",GAME_NOT_WORKING|GAME_NO_SOUND ) +GAME( 199?, tarzan, 0, tarzan, tarzan, tarzan, ROT0, "IGS", "Tarzan",GAME_NOT_WORKING|GAME_NO_SOUND )