Kazzo USB rom dumper / dev cart programmer

Discuss hardware-related topics, such as development cartridges, CopyNES, PowerPak, EPROMs, or whatever.

Moderator: Moderators

Werrock
Posts: 44
Joined: Mon Mar 28, 2016 9:40 am
Location: Sweden

Re: Kazzo USB rom dumper / dev cart programmer

Post by Werrock »

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: Select all

    cpu_write(d, 0x8000, i << 4);
to

Code: Select all

    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?
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Kazzo USB rom dumper / dev cart programmer

Post by lidnariq »

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: Select all

      cpu_read(d, 0x8000, banksize);
with

Code: Select all

    cpu_read(d, 0x8000, 0x4000);
    cpu_read(d, 0xc000, 0x4000);
Werrock
Posts: 44
Joined: Mon Mar 28, 2016 9:40 am
Location: Sweden

Re: Kazzo USB rom dumper / dev cart programmer

Post by Werrock »

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
Joe
Posts: 650
Joined: Mon Apr 01, 2013 11:17 pm

Re: Kazzo USB rom dumper / dev cart programmer

Post by Joe »

Don't give all the credit to me, most of it is copied from other scripts (especially the MMC3 script). :P
Ice Man
Posts: 547
Joined: Fri Jul 04, 2014 2:34 pm

Re: Kazzo USB rom dumper / dev cart programmer

Post by Ice Man »

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

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

Code: Select all

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 );
	}
}
User avatar
infiniteneslives
Posts: 2104
Joined: Mon Apr 04, 2011 11:49 am
Location: WhereverIparkIt, USA
Contact:

Re: Kazzo USB rom dumper / dev cart programmer

Post by infiniteneslives »

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.
If you're gonna play the Game Boy, you gotta learn to play it right. -Kenny Rogers
Werrock
Posts: 44
Joined: Mon Mar 28, 2016 9:40 am
Location: Sweden

Re: Kazzo USB rom dumper / dev cart programmer

Post by Werrock »

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: Select all

code
If I have you permission, I can upload this to the git repository.
prototector
Posts: 44
Joined: Sun Aug 31, 2014 9:55 am

Re: Kazzo USB rom dumper / dev cart programmer

Post by prototector »

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?
Werrock
Posts: 44
Joined: Mon Mar 28, 2016 9:40 am
Location: Sweden

Re: Kazzo USB rom dumper / dev cart programmer

Post by Werrock »

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.
Werrock
Posts: 44
Joined: Mon Mar 28, 2016 9:40 am
Location: Sweden

Re: Kazzo USB rom dumper / dev cart programmer

Post by Werrock »

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!
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Kazzo USB rom dumper / dev cart programmer

Post by lidnariq »

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: Select all

    cpu_write(d, 0x8000, i << 4);
and

Code: Select all

    cpu_write(d, 0x8000, i);
Ice Man
Posts: 547
Joined: Fri Jul 04, 2014 2:34 pm

Re: Kazzo USB rom dumper / dev cart programmer

Post by Ice Man »

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: Select all

code
If I have you permission, I can upload this to the git repository.
Sure, go ahead and upload it.
Werrock
Posts: 44
Joined: Mon Mar 28, 2016 9:40 am
Location: Sweden

Re: Kazzo USB rom dumper / dev cart programmer

Post by Werrock »

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.
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Kazzo USB rom dumper / dev cart programmer

Post by lidnariq »

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.
Werrock
Posts: 44
Joined: Mon Mar 28, 2016 9:40 am
Location: Sweden

Re: Kazzo USB rom dumper / dev cart programmer

Post by Werrock »

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.
Post Reply