Xmas 2016

Discuss hardware-related topics, such as development cartridges, CopyNES, PowerPak, EPROMs, or whatever.

Moderators: B00daW, Moderators

User avatar
rainwarrior
Posts: 7804
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Xmas 2016

Post by rainwarrior » Fri May 15, 2020 2:50 pm

I think I know what the problem is then. The original plugin treated it like UNROM where the register exists at $8000-FFFF, but some variations of the RetroUSB board only put the register at $C000-FFFF.

The more recent version of the U5ROM plugin should do that, but you said it didn't work. Instead, since the first version seemed to produce a dump (but gave you the same bank over and over?), here's a small modification to the first version, using just $C000-FFFF instead of $8000.

Also this should automatically add the mapper number for you.
Attachments
u5romf.BIN
plugin
(1.13 KiB) Downloaded 6 times
U5ROMF.ASM
source
(4.02 KiB) Downloaded 6 times

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

Re: Xmas 2016

Post by NewRisingSun » Fri May 15, 2020 4:35 pm

Be sure to set the battery bit in the dump, in addition to setting it to mapper 30, to denote the UNROM-512 variant that only responds in the $C000-$FFFF range, otherwise even a good dump will not work in emulators with proper UNROM-512 support.

mario64
Posts: 23
Joined: Mon Jul 11, 2016 9:01 pm

Re: Xmas 2016

Post by mario64 » Sat May 16, 2020 9:00 am

rainwarrior wrote:
Fri May 15, 2020 2:50 pm
I think I know what the problem is then. The original plugin treated it like UNROM where the register exists at $8000-FFFF, but some variations of the RetroUSB board only put the register at $C000-FFFF.

The more recent version of the U5ROM plugin should do that, but you said it didn't work. Instead, since the first version seemed to produce a dump (but gave you the same bank over and over?), here's a small modification to the first version, using just $C000-FFFF instead of $8000.

Also this should automatically add the mapper number for you.
Thank you SO much! I actually have a working rom now :)

Couple of follow-up questions if I may:
I'm trying to understand how/why the official rom is 128k but my dump is 513k yet both seem to work. Any idea?
Comparing my dump to the official rom using your visual editor shows that mine has an extra 1.5 columns of data (left to right). Is this because of the size difference? I'm still testing but so far it seems to be working correctly

User avatar
rainwarrior
Posts: 7804
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Xmas 2016

Post by rainwarrior » Sat May 16, 2020 11:25 am

When a larger EPROM is being used to store a smaller ROM you just have to duplicate it multiple times across it. Works out the same in the end.

mario64
Posts: 23
Joined: Mon Jul 11, 2016 9:01 pm

Re: Xmas 2016

Post by mario64 » Sat May 16, 2020 8:23 pm

rainwarrior wrote:
Sat May 16, 2020 11:25 am
When a larger EPROM is being used to store a smaller ROM you just have to duplicate it multiple times across it. Works out the same in the end.
I see. Thanks again. In terms of validating a good dump is there any way besides seeing if it boots? Just play for a while to ensure no crashes?

mario64
Posts: 23
Joined: Mon Jul 11, 2016 9:01 pm

Re: Xmas 2016

Post by mario64 » Mon May 18, 2020 12:26 pm

Well I spoke too soon. Testing today with the 2016 cart I can get it to boot using U5ROMF but only after changing the mapper from 30 to 2 (30 was auto-detected). Problem is, it immediately hangs after the splash screen. I do see the data there (see attached screen shot). I tried all combinations of iNES header editor settings but none will get it to run. Oddly, it dumped using Vertical Mirroring while the official rom shows Horizontal. Changing it made no difference though. Any ideas?
Attachments
2016.png

lidnariq
Posts: 9305
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Xmas 2016

Post by lidnariq » Mon May 18, 2020 12:41 pm

Does this cart, like the original 8-bit Xmas, also have LEDs? If so, it's going to crash when emulated as mapper 2.

User avatar
rainwarrior
Posts: 7804
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Xmas 2016

Post by rainwarrior » Mon May 18, 2020 1:18 pm

Did you do what NewRisingSun suggested and set the battery backed flag in the header? (As mapper 30)

Kind of interesting to note from that visual output:

Banks 0,1,2,3 graphics, corrupted in demo ROM
Bank 4 empty in demo ROM, but seems to have some data for you?
Bank 5 empty in both
Bank 6-7 code

I'm curious what might be in bank 4.

mario64
Posts: 23
Joined: Mon Jul 11, 2016 9:01 pm

Re: Xmas 2016

Post by mario64 » Mon May 18, 2020 1:49 pm

Yes. Here's some additional details. I got it working (needs more testing) on my AVS and AV Famicom via Everdrive N8 Pro. It also runs on FCEUX and Mesen. However, my NT Mini and MISTer refuse to run it. MISTer gets past the splash screen but hangs with flashing/garbled graphics. NT Mini never even boots it. I did have to set the battery flag yes. I can check bank 4. Would that be further down?
Last edited by mario64 on Mon May 18, 2020 1:51 pm, edited 1 time in total.

mario64
Posts: 23
Joined: Mon Jul 11, 2016 9:01 pm

Re: Xmas 2016

Post by mario64 » Mon May 18, 2020 1:49 pm

lidnariq wrote:
Mon May 18, 2020 12:41 pm
Does this cart, like the original 8-bit Xmas, also have LEDs? If so, it's going to crash when emulated as mapper 2.
It does yes

User avatar
rainwarrior
Posts: 7804
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Xmas 2016

Post by rainwarrior » Mon May 18, 2020 1:56 pm

From the image you posted I decoded the dumped ROM (since I only needed the first 128k) and can confirm it runs in Mesen if I:
  • Use mapper 30
  • Set the battery bit
  • Vertical mirroring
As for your problems with MISTer, I would highly suspect it does not support mapper 30 fully. Most likely it doesn't do the half-range register at $C000 only thing for the battery bit. (Same deal with the NT Mini jailbreak software, probably just doesn't do mapper 30 fully.)

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

Re: Xmas 2016

Post by NewRisingSun » Mon May 18, 2020 2:06 pm

Would you mind posting the ROM file you dumped? Since the original author already made it publicly available on the retroUSB website, albeit in corrupted form, this should not pose any legal problems.

Edit: or, if you want to be absolutely safe, you could post an IPS patch that patches the corrupt file on the retroUSB website to your good dump.

mario64
Posts: 23
Joined: Mon Jul 11, 2016 9:01 pm

Re: Xmas 2016

Post by mario64 » Mon May 18, 2020 2:09 pm

rainwarrior wrote:
Mon May 18, 2020 1:56 pm
From the image you posted I decoded the dumped ROM (since I only needed the first 128k) and can confirm it runs in Mesen if I:
  • Use mapper 30
  • Set the battery bit
  • Vertical mirroring
As for your problems with MISTer, I would highly suspect it does not support mapper 30 fully. Most likely it doesn't do the half-range register at $C000 only thing for the battery bit. (Same deal with the NT Mini jailbreak software, probably just doesn't do mapper 30 fully.)
Great thank you. Forgive me if this is a dumb question but NT Mini runs the actual cart without issue. Wouldn't that mean it supports mapper 30? Also, I have found that the rom is crashing after maybe 20 minutes of running its demo loop. I'm testing now to see if the cart does this too or if it is related to the dump

User avatar
rainwarrior
Posts: 7804
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Xmas 2016

Post by rainwarrior » Mon May 18, 2020 2:16 pm

mario64 wrote:
Mon May 18, 2020 2:09 pm
Great thank you. Forgive me if this is a dumb question but NT Mini runs the actual cart without issue. Wouldn't that mean it supports mapper 30? Also, I have found that the rom is crashing after maybe 20 minutes of running its demo loop. I'm testing now to see if the cart does this too or if it is related to the dump
No, when you run the cart, the cartridge hardware is supplying the mapper.

When you run a ROM image using the NT Mini jailbreak software, its software us supplying a surrogate mapper in its own FPGA.

I've noticed this ROM crashes if I press START for too long on the title screen, which is curious. The website version doesn't have that problem despite the garbled graphics and missing music... wonder if it's something going on in the music engine, actually.

User avatar
rainwarrior
Posts: 7804
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Xmas 2016

Post by rainwarrior » Mon May 18, 2020 2:17 pm

BunnyBoy said it was okay, so I'm uploading the ROM here.
Attachments
xmas2016_dumped.nes
(128.02 KiB) Downloaded 19 times

Post Reply