How to switch WRK in 5000-5fff or 4000-4fff in nestopia?

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
zxbdragon
Posts: 482
Joined: Mon Dec 12, 2011 8:15 pm

How to switch WRK in 5000-5fff or 4000-4fff in nestopia?

Post by zxbdragon » Mon Aug 05, 2019 7:57 pm

How to switch WRK in 5000-5fff or 4000-4fff in nestopia?

tepples
Posts: 21946
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: How to switch WRK in 5000-5fff or 4000-4fff in nestopia?

Post by tepples » Tue Aug 06, 2019 6:42 am

By WRK do you mean work RAM on the Game Pak?

Could I have more context as to what you're trying to accomplish?

zxbdragon
Posts: 482
Joined: Mon Dec 12, 2011 8:15 pm

Re: How to switch WRK in 5000-5fff or 4000-4fff in nestopia?

Post by zxbdragon » Thu Aug 08, 2019 11:10 pm

WRK,In nestopia ,is RAM or SRAM.

User avatar
Quietust
Posts: 1551
Joined: Sun Sep 19, 2004 10:59 pm
Contact:

Re: How to switch WRK in 5000-5fff or 4000-4fff in nestopia?

Post by Quietust » Fri Aug 09, 2019 4:57 am

Still need more context - for example, are you attempting to add support for a new mapper?
Quietust, QMT Productions
P.S. If you don't get this note, let me know and I'll write you another.

zxbdragon
Posts: 482
Joined: Mon Dec 12, 2011 8:15 pm

Re: How to switch WRK in 5000-5fff or 4000-4fff in nestopia?

Post by zxbdragon » Sat Aug 10, 2019 12:51 pm

Quietust wrote:Still need more context - for example, are you attempting to add support for a new mapper?
NintendulatorNRS,mapper 176

User avatar
dougeff
Posts: 2673
Joined: Fri May 08, 2015 7:17 pm
Location: DIGDUG
Contact:

Re: How to switch WRK in 5000-5fff or 4000-4fff in nestopia?

Post by dougeff » Sat Aug 10, 2019 2:37 pm

Mapper 176...

(deleted)

has an option to...
"$5000-$5FFF maps to the second 4 KiB of the 8 KiB WRAM bank 2"


edit 2...

it looks like Nestopia can run mapper 176. See readme.html

<h4>iNES Mappers:</h4>
<ul>
<li>0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,</li>
<li>17, 18, 19,*21, 22,*23, 24,*25, 26, 27, 32, 33, 34, 36,</li>
<li>37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,</li>
<li>51, 52, 53, 54, 55, 56, 57, 58, 60, 61, 62, 63, 64, 65,</li>
<li>66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,</li>
<li>80, 82, 83, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95,</li>
<li>96, 97, 99, 103, 104, 105, 106, 107, 108, 112, 113, 114,</li>
<li>115, 116, 117, 118, 119, 120, 121, 123, 126, 132, 133, 134,</li>
<li>136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147,</li>
<li>148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,</li>
<li>163, 164, 165, 166, 167, 170, 171, 172, 173, 175, 176, 177,</li>
<li>178, 179, 180, 182, 183, 184,*185, 186, 187, 188, 189, 191,</li>
<li>192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203,</li>
<li>204, 205, 206, 207, 208, 209, 211, 212, 213, 214, 215, 216,</li>
<li>217, 219, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230,</li>
<li>231, 232, 233, 234, 235, 236, 238, 240, 241, 242, 243, 244,</li>
<li>245, 246, 249, 250, 252, 254, 255</li>
</ul>
nesdoug.com -- blog/tutorial on programming for the NES

NewRisingSun
Posts: 1178
Joined: Thu May 19, 2005 11:30 am

Re: How to switch WRK in 5000-5fff or 4000-4fff in nestopia?

Post by NewRisingSun » Sun Aug 11, 2019 3:19 am

He is asking how one would add the WRAM relocation from $6xxx to the $5xxx area given the class interfaces in Nestopia's source code. Nestopia does partially support Mapper 176, but not yet the WRAM relocation functionality.

Post Reply