nesdev.com
https://forums.nesdev.com/

Kazzo USB rom dumper / dev cart programmer
https://forums.nesdev.com/viewtopic.php?f=9&t=7912
Page 24 of 38

Author:  Werrock [ Mon Mar 28, 2016 12:08 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

lidnariq wrote:
You should be able to start with the GNROM script here: https://github.com/arantius/anago-scrip ... /_gnrom.ad

and change this line in cpu_dump:
Code:
    cpu_write(d, 0x8000, i << 4);
to
Code:
    cpu_write(d, 0x4120, i | (i<<4));
to get the PRG out of the cartridge.

Naruko's provided mmc3 script is complex enough that I'm a little afraid of it, but as I said, you should just be able to dump it twice once using each technique, split the resulting files and reassemble into something functional.


Sorry for being an idiot, how do I get the PRG/CHR only and how do I merge them later?

Author:  lidnariq [ Mon Mar 28, 2016 12:20 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

Werrock wrote:
I got this error:
ength range must be 0x000000 to 0x004000
AN ERROR HAS OCCURED [script logical error]
For whatever reason, anago can't read 32 KiB at a time, and must read 16 KiB at a time.

Replace
Code:
      cpu_read(d, 0x8000, banksize);
with
Code:
    cpu_read(d, 0x8000, 0x4000);
    cpu_read(d, 0xc000, 0x4000);

Author:  Werrock [ Mon Mar 28, 2016 12:38 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

Amazing!

mirroring Program ROM fixed
mirroring Charcter ROM fixed
gluk_189_try_2.nes, mapper 189
Program ROM: size 0x020000, crc32 0x3f60ac50
Charcter ROM: size 0x020000, crc32 0x9219bd34

And it works perfectly in the emulator. You Sir are a genius!

Where can upload a rom for public access and are there any legal issue with this?

Edit: We should also upload the mapper script, its really nice with more mappers to this great tool.

Edit 2: I got it uploaded to github, all credit to Joe. https://github.com/arantius/anago-scrip ... txc_189.ad

Author:  Joe [ Mon Mar 28, 2016 1:53 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

Don't give all the credit to me, most of it is copied from other scripts (especially the MMC3 script). :P

Author:  Ice Man [ Mon Mar 28, 2016 4:37 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

Is there some kind of script database? I'm sure I'm missing alot.

Either way: Mapper 246 (Fong Shen Bang) script:
Code:
board <- {
    mappernum = 246,
   cpu_rom = {
      size_base = 4 * mega, size_max = 4 * mega, banksize = 0x2000
   },
   ppu_rom = {
      size_base = 4 * mega, size_max = 4 * mega, banksize = 0x0800,
   },
   ppu_ramfind = true, vram_mirrorfind = false
};


function cpu_dump(d, pagesize, banksize)
{
   for(local i = 0; i < pagesize; i += 1){
      cpu_write(d, 0x6000, i);
      cpu_read(d, 0x8000, banksize);
   }
}

function ppu_dump(d, pagesize, banksize)
{
   for(local i = 0; i < pagesize; i += 1){
      cpu_write(d, 0x6004, i);
      cpu_write(d, 0x8000, i);
      ppu_read(d, 0, banksize );
   }
}

Author:  infiniteneslives [ Mon Mar 28, 2016 5:37 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

If someone would like to make a nice neat .zip download of scripts that aren't currently distributed with my dropbox .zip along with the readme and drivers etc I can add them in.

Author:  Werrock [ Tue Mar 29, 2016 10:08 am ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

Ice Man wrote:
Is there some kind of script database? I'm sure I'm missing alot.

Either way: Mapper 246 (Fong Shen Bang) script:
Code:
code


If I have you permission, I can upload this to the git repository.

Author:  prototector [ Tue Mar 29, 2016 11:08 am ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

infiniteneslives wrote:
If someone would like to make a nice neat .zip download of scripts that aren't currently distributed with my dropbox .zip along with the readme and drivers etc I can add them in.


Yeah, this would be great to have an updated list of scripts available.

Also, was a script made for mapper 11 Color Dreams games?

Author:  Werrock [ Tue Mar 29, 2016 11:53 am ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

Ok, I have created a pull request, hopefully it will be accepted.

Next up I want to dump Policeman, it should use mapper 36:
http://wiki.nesdev.com/w/index.php/INES_Mapper_036

Is the https://github.com/arantius/anago-scrip ... /_gnrom.ad script supporting oversize? I doubt it looking at the max sizes. Is it enough to increase them or is the bank switching different on oversize?

"Theoretically the bank select register could be implemented with a 74HC377 octal D latch, allowing up to 512 KB of PRG ROM and 128 KB of CHR ROM. " I guess this is the oversizing? I will open the cart and have a look if this chip is in use.

Author:  Werrock [ Tue Mar 29, 2016 11:58 am ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

Color dreams look very similar also to the gnrom. If anyone can create a mapper I can test it. I have all color dreams/bunch and wisdom tree games.

https://github.com/arantius/anago-scrip ... per_246.ad is published. Thank you Ice Man, one more down!

Author:  lidnariq [ Tue Mar 29, 2016 12:00 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

We don't know anything about mapper 36 beyond what the emulator source says, so pictures of the PCB would appreciated regardless.


To get a color dreams dumper from the gnrom one, swap these two lines:
Code:
    cpu_write(d, 0x8000, i << 4);
and
Code:
    cpu_write(d, 0x8000, i);

Author:  Ice Man [ Tue Mar 29, 2016 12:05 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

Werrock wrote:
Ice Man wrote:
Is there some kind of script database? I'm sure I'm missing alot.

Either way: Mapper 246 (Fong Shen Bang) script:
Code:
code


If I have you permission, I can upload this to the git repository.

Sure, go ahead and upload it.

Author:  Werrock [ Tue Mar 29, 2016 12:13 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

I tried but it did not work. Black screen in emulator, Info from anago:
bible_adventures.nes, mapper 11
Program ROM: size 0x010000, crc32 0xb7941ad3
Charcter ROM: size 0x004000, crc32 0xd6a30cde
Cleaned it and works on NES, got new result (same inserting the cart three times now):
bible_adventures3.nes, mapper 11
Program ROM: size 0x010000, crc32 0x9b8e02c0
Charcter ROM: size 0x004000, crc32 0xd6a30cde

Starts in emulator but graphics is very messed up.

Author:  lidnariq [ Tue Mar 29, 2016 12:28 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

Hm. Somehow your CHR is much too small. But it's not 8 KiB, it's 16 KiB, so I'm kinda confused.

That said, this PRG checksum: 0x9b8e02c0 is consistent with revision 1.3 of the game.

Author:  Werrock [ Tue Mar 29, 2016 12:32 pm ]
Post subject:  Re: Kazzo USB rom dumper / dev cart programmer

We are close then!

Here is the picture of Policeman PCB:
http://sv.tinypic.com/r/sw6xpj/9

The chip on the left is a 74LS175 and the right one 74LS138 so 74HC377 (mentioned as a chip used for over sizing) is not used.

Page 24 of 38 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/