It is currently Thu Oct 19, 2017 2:15 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 530 posts ]  Go to page Previous  1 ... 32, 33, 34, 35, 36
Author Message
PostPosted: Sun Oct 01, 2017 2:03 am 
Offline

Joined: Sat Sep 30, 2017 3:48 pm
Posts: 4
Thank-you for the information. So do I just paste this information into the old file in the place of the previous section in something like Notepad? I have tried this and it does not seem to work. I'm not a programmer by any means, so I'm not really sure what to do. Is there a properly working script that I could use?


Top
 Profile  
 
PostPosted: Sun Oct 01, 2017 6:19 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19099
Location: NE Indiana, USA (NTSC)
When it "does not seem to work", what error message or other misbehavior appears?


Top
 Profile  
 
PostPosted: Sun Oct 01, 2017 7:11 am 
Offline

Joined: Sat Sep 30, 2017 3:48 pm
Posts: 4
When I try to dump the cartridge using the VRC6a or VRC6b scripts, I either get a message like the one in my previous post or one like this.

m_database not found

AN ERROR HAS OCCURED [expected 'IDENTIFIER']

CALLSTACK
*FUNCTION [dump()] dumpcore.nut line [15]

LOCALS
[increase_ppu] 1
[increase_cpu] 11
[mappernum] -1
[script] "vrc6a.af"
[d] USERPOINTER
[this] TABLE

I am trying to modify the script with no success. I know that I am probably doing something wrong. This is my attempt to change the file.

/*VRC6 type B/351949A/address bus A0=R1, A1=R0
CPU memory bank
cpu address|rom address |page|task
$8000-$bfff|n * 0x4000 |even|write area + write 0x2aaa
$c000-$dfff|0x04000-0x05fff|2 |write 0x5555
-------------------------------------
$8000-$bfff|n * 0x4000 |odd |write area + write 0x5555
$c000-$dfff|0x02000-0x03fff|1 |write 0x2aaa
$e000-$efff|末尾 |fix |boot area, 未使用

PPU memory bank
ppu address|rom address |page|task
$0000-$03ff|0x02800-0x02bff|0x0a|write (0x2aaa & 0x03ff) + 0
$0400-$07ff|0x05400-0x057ff|0x15|write (0x5555 & 0x03ff) + 0x400
$1000-$1fff|n * 0x1000 |n |write area*/
board <- {
  mappernum = 0,
  cpu_rom = {
    size_base = 0x8000, size_max = 0x8000
    banksize = 0x8000
  },
  ppu_rom= {
    size_base = 0x8000, size_max = 0x2000,
    banksize = 0x2000
  },
  ppu_ramfind = false, vram_mirrorfind = true
};,
}
function cpubank_even_set(d, bank, cpu_banksize)
{
cpu_command(d, 0x2aaa, 0x8000, cpu_banksize);
cpu_command(d, 0x5555, 0xc000, 0x2000);
cpu_write(d, 0x8000, bank)
cpu_write(d, 0xc000, 2)
}
function initalize(d, cpu_banksize, ppu_banksize)
{
cpubank_even_set(d, 0, cpu_banksize);
cpu_command(d, 0, 0x8000, cpu_banksize);

ppu_command(d, 0x2aaa, 0, ppu_banksize);
ppu_command(d, 0x5555, 0x0400, ppu_banksize);
ppu_command(d, 0, 0x0800, ppu_banksize);

cpu_write(d, 0xb003, 0); //work ram disable
cpu_write(d, 0xd000, 0x0a);
cpu_write(d, 0xd001, 0x15);
cpu_write(d, 0xd002, 0x00);
cpu_write(d, 0xd003, 0x00);
}
function cpu_transfer(d, start, end, cpu_banksize)
{
local i;
for(i = start; i < end - 2; i += 2){
cpubank_even_set(d, i, cpu_banksize);
cpu_program(d, 0x8000, cpu_banksize);

cpu_command(d, 0x5555, 0x8000, cpu_banksize);
cpu_command(d, 0x2aaa, 0xc000, 0x2000);
cpu_write(d, 0x8000, i | 1)
cpu_write(d, 0xc000, 1)
cpu_program(d, 0x8000, cpu_banksize);
}
cpubank_even_set(d, i, cpu_banksize);
cpu_program(d, 0x8000, cpu_banksize);

cpu_command(d, 0x5555, 0x8000, cpu_banksize);
cpu_command(d, 0x2aaa, 0xc000, 0x2000);
cpu_write(d, 0x8000, i | 1)
cpu_write(d, 0xc000, 1)
cpu_program(d, 0x8000, cpu_banksize);
}

function ppu_transfer(d, start, end, ppu_banksize)
{
for(local i = start; i < end; i += 4){
cpu_write(d, 0xe000, i | 0);
cpu_write(d, 0xe001, i | 1);
cpu_write(d, 0xe002, i | 2);
cpu_write(d, 0xe003, i | 3);
ppu_program(d, 0x1000, ppu_banksize * 4);
}
}


Top
 Profile  
 
PostPosted: Mon Oct 02, 2017 10:16 pm 
Offline
User avatar

Joined: Mon Apr 04, 2011 11:49 am
Posts: 1905
Location: WhereverIparkIt, USA
Have you tried the version I sent with the commandline build instead of the gui?

_________________
If you're gonna play the Game Boy, you gotta learn to play it right. -Kenny Rogers


Top
 Profile  
 
PostPosted: Tue Oct 03, 2017 3:50 am 
Offline

Joined: Sat Sep 30, 2017 3:48 pm
Posts: 4
I did try that. I got the following error.

vrc6a.af line = (17) column = (2) : error expected 'IDENTIFIER'
vrc6a.af open error

I have tried dumping another game with the command line version, and it worked, so I don't know what's up.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 530 posts ]  Go to page Previous  1 ... 32, 33, 34, 35, 36

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