Page 24 of 51

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Mon Mar 28, 2016 12:08 pm
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?

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Mon Mar 28, 2016 12:20 pm
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);

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Mon Mar 28, 2016 12:38 pm
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

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Mon Mar 28, 2016 1:53 pm
by Joe
Don't give all the credit to me, most of it is copied from other scripts (especially the MMC3 script). :P

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Mon Mar 28, 2016 4:37 pm
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 );
	}
}

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Mon Mar 28, 2016 5:37 pm
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.

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Tue Mar 29, 2016 10:08 am
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.

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Tue Mar 29, 2016 11:08 am
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?

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Tue Mar 29, 2016 11:53 am
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.

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Tue Mar 29, 2016 11:58 am
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!

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Tue Mar 29, 2016 12:00 pm
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);

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Tue Mar 29, 2016 12:05 pm
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.

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Tue Mar 29, 2016 12:13 pm
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.

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Tue Mar 29, 2016 12:28 pm
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.

Re: Kazzo USB rom dumper / dev cart programmer

Posted: Tue Mar 29, 2016 12:32 pm
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.