It is currently Tue Dec 12, 2017 11:09 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Mon Dec 12, 2011 8:18 pm 
Offline

Joined: Mon Dec 12, 2011 8:15 pm
Posts: 362
fceu setprgxxr(xx=2,4,8,16,32) ==nestopia ?

nestopia prg or wrk not swap 2k,4k or 1k?
have solution?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 12, 2011 8:35 pm 
Offline
User avatar

Joined: Thu Sep 23, 2010 7:28 pm
Posts: 232
i'm not really sure what you're asking...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 12, 2011 8:35 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19335
Location: NE Indiana, USA (NTSC)
I'm not sure either. My best guess is "I'm trying to add support for a mapper to a popular NES emulator for PCs. The mapper swaps PRG ROM ("prg") or PRG RAM ("wrk") in banks smaller than 8 KiB. But I don't know how to make this emulator swap such small banks. Can somebody help me?"


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 12, 2011 10:04 pm 
Offline

Joined: Mon Dec 12, 2011 8:15 pm
Posts: 362
copy ram is working,but too complex


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 12, 2011 10:15 pm 
Offline
User avatar

Joined: Thu Sep 23, 2010 7:28 pm
Posts: 232
if tepples is right about your question, what i do is break the PRG and CHR banks into 1 KB blocks. i have swap functions that takes the block size the mapper uses, the chunk to replace, and the value of the new chunk and it does the math, changing all the applicable 1 KB blocks.

instead of copying memory, load all of the PRG and CHR data into one big bank and only change pointers for each 1 KB to point to the correct place in the full array of data.


Top
 Profile  
 
PostPosted: Tue Dec 13, 2011 4:40 am 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3076
Location: Brazil
"Translating" it...
zxbdragon wrote:
fceu setprgxxr(xx=2,4,8,16,32) ==nestopia ?


FCEU uses a function setprgXXr(), where XX can be 2,4,8,16 or 32.
Like... setprg2r(), setprg32r().

He's asking if such thing is the same in Nestopia.

Quote:
nestopia prg or wrk not swap 2k,4k or 1k?
have solution?


He's wondering if nestopia doesn't swap 1, 2 and 4k PRG banks.

_________________
Zepper
RockNES developer


Top
 Profile  
 
PostPosted: Fri Dec 16, 2011 8:19 am 
Offline

Joined: Mon Dec 12, 2011 8:15 pm
Posts: 362
Zepper wrote:
"Translating" it...
zxbdragon wrote:
fceu setprgxxr(xx=2,4,8,16,32) ==nestopia ?


FCEU uses a function setprgXXr(), where XX can be 2,4,8,16 or 32.
Like... setprg2r(), setprg32r().

He's asking if such thing is the same in Nestopia.

Quote:
nestopia prg or wrk not swap 2k,4k or 1k?
have solution?


He's wondering if nestopia doesn't swap 1, 2 and 4k PRG banks.


Your description is very exact


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 22, 2011 12:02 am 
Offline

Joined: Mon Dec 12, 2011 8:15 pm
Posts: 362
fcemu mm code
Code:
setprg4r(0x10,0x6000,0);
setprg4(0x7000,15);

setprg4(0xA000,~3);
setprg4r(0x10,0xB000,1);



How to transfer nestopia the code?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 22, 2011 6:22 am 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3076
Location: Brazil
What is your native speaking language?

_________________
Zepper
RockNES developer


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 22, 2011 7:35 am 
Offline

Joined: Mon Dec 12, 2011 8:15 pm
Posts: 362
Chinese.

English is very poor.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 30, 2011 2:48 am 
Offline

Joined: Mon Dec 12, 2011 8:15 pm
Posts: 362
nobody cares to ask about sth.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: krzysiobal and 9 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