It is currently Sat Nov 18, 2017 8:59 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 559 posts ]  Go to page Previous  1 ... 21, 22, 23, 24, 25, 26, 27 ... 38  Next
Author Message
PostPosted: Mon Mar 28, 2016 12:08 pm 
Offline

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


Top
 Profile  
 
PostPosted: Mon Mar 28, 2016 12:20 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6442
Location: UK (temporarily)
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);


Top
 Profile  
 
PostPosted: Mon Mar 28, 2016 12:38 pm 
Offline

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


Top
 Profile  
 
PostPosted: Mon Mar 28, 2016 1:53 pm 
Offline

Joined: Mon Apr 01, 2013 11:17 pm
Posts: 437
Don't give all the credit to me, most of it is copied from other scripts (especially the MMC3 script). :P


Top
 Profile  
 
PostPosted: Mon Mar 28, 2016 4:37 pm 
Offline

Joined: Fri Jul 04, 2014 2:34 pm
Posts: 295
Location: Germany
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 );
   }
}


Top
 Profile  
 
PostPosted: Mon Mar 28, 2016 5:37 pm 
Offline
User avatar

Joined: Mon Apr 04, 2011 11:49 am
Posts: 1919
Location: WhereverIparkIt, USA
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


Top
 Profile  
 
PostPosted: Tue Mar 29, 2016 10:08 am 
Offline

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


Top
 Profile  
 
PostPosted: Tue Mar 29, 2016 11:08 am 
Offline

Joined: Sun Aug 31, 2014 9:55 am
Posts: 37
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?


Top
 Profile  
 
PostPosted: Tue Mar 29, 2016 11:53 am 
Offline

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


Top
 Profile  
 
PostPosted: Tue Mar 29, 2016 11:58 am 
Offline

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


Top
 Profile  
 
PostPosted: Tue Mar 29, 2016 12:00 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6442
Location: UK (temporarily)
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);


Top
 Profile  
 
PostPosted: Tue Mar 29, 2016 12:05 pm 
Offline

Joined: Fri Jul 04, 2014 2:34 pm
Posts: 295
Location: Germany
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.


Top
 Profile  
 
PostPosted: Tue Mar 29, 2016 12:13 pm 
Offline

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


Top
 Profile  
 
PostPosted: Tue Mar 29, 2016 12:28 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6442
Location: UK (temporarily)
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.


Top
 Profile  
 
PostPosted: Tue Mar 29, 2016 12:32 pm 
Offline

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 559 posts ]  Go to page Previous  1 ... 21, 22, 23, 24, 25, 26, 27 ... 38  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group