Dumping a multigames 1050 in 1 NES Cartridge with INLretro

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

Moderator: Moderators

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

Re: Dumping a multigame 1000 in 1 NES Cartridge with INLretro

Post by NewRisingSun »

Yes, you have the 72-pin version, I have the 60-pin version.
nes356
Posts: 24
Joined: Sat Nov 19, 2022 10:11 am

Re: Dumping a multigame 1000 in 1 NES Cartridge with INLretro

Post by nes356 »

The mapper 354 is now supported by :
FCEUX 2.6.5 : https://github.com/TASEmulators/fceux

The FCEUX code for the mapper 354 is based on this of FCEUMM.

The 1050 games of the "1050 in 1" rom has been tested with FCEUX 2.6.5-interim, and it appears that 2 games (probably the same game "B-Wings" ?) don't work (music ok but blue screen) :

Code: Select all

71 - B WING
701 - B WING I
Last edited by nes356 on Tue Feb 14, 2023 8:37 am, edited 6 times in total.
nes356
Posts: 24
Joined: Sat Nov 19, 2022 10:11 am

Re: Dumping a multigames 1050 in 1 NES Cartridge with INLretro

Post by nes356 »

[...]
Last edited by nes356 on Tue Feb 14, 2023 8:37 am, edited 2 times in total.
NewRisingSun
Posts: 1510
Joined: Thu May 19, 2005 11:30 am

Re: Dumping a multigames 1050 in 1 NES Cartridge with INLretro

Post by NewRisingSun »

Have you verified that B-Wing on that multicart works on real hardware? It is not uncommon for pirates to include non-working or glitchy games in multicarts with such high game counts.
nes356
Posts: 24
Joined: Sat Nov 19, 2022 10:11 am

Re: Dumping a multigames 1050 in 1 NES Cartridge with INLretro

Post by nes356 »

Yes, this game was working on a NES.
Last edited by nes356 on Tue Feb 28, 2023 9:34 am, edited 1 time in total.
NewRisingSun
Posts: 1510
Joined: Thu May 19, 2005 11:30 am

Re: Dumping a multigames 1050 in 1 NES Cartridge with INLretro

Post by NewRisingSun »

Ok, then. I shall have a look, and submit an update to libretro-fceumm once I know what needs to be changed.
User avatar
krzysiobal
Posts: 1037
Joined: Sun Jun 12, 2011 12:06 pm
Location: Poland
Contact:

Re: Dumping a multigames 1050 in 1 NES Cartridge with INLretro

Post by krzysiobal »

B-Wings is known to write to $0000-$1fff despite using CHR-ROM, so if your emulator does not block CHR writes, it will result in blue screen.
Image My website: http://krzysiobal.com | Image My NES/FC flashcart: http://krzysiocart.com
nes356
Posts: 24
Joined: Sat Nov 19, 2022 10:11 am

Re: Dumping a multigames 1050 in 1 NES Cartridge with INLretro

Post by nes356 »

The write-protection for the CHR RAM has been added to the code of FCEUX and libretro-fceumm in 2 different ways :

FCEUX 2.6.6 :

Code: Select all

SetupCartCHRMapping(0, CHRptr[0], CHRsize[0], (latchAddr & 8) ? 0 : 1);
libretro-fceumm :

Code: Select all

SetupCartCHRMapping(0, CHRptr[0], 0x2000, latchAddr &0x08? 0: 1);
B-Wings seems to work with these 2 lines of code.
Thanks for the bug correction.
nes356
Posts: 24
Joined: Sat Nov 19, 2022 10:11 am

Re: Dumping a multigames 1050 in 1 NES Cartridge with INLretro

Post by nes356 »

Through further experiments, another 10 bugs were revealed.
It concerns 2 games :
  • Nekketsu Kouha Kunio-kun (Renegade)
  • Hokuto No Ken II
Menu entries bugged :

Code: Select all

376		CHARM			Nekketsu Kouha Kunio-kun (Renegade)	Level 4 – Stage 1		Reboot
407		BEASTMAN		Nekketsu Kouha Kunio-kun (Renegade)	Level 4 – Stage 2		Graphic bug
449		COMBATIVE		Nekketsu Kouha Kunio-kun (Renegade)	Level 4 – Stage 3		Graphic bug
459		EXILEMANER		Nekketsu Kouha Kunio-kun (Renegade)	Level 4 – Stage 4		Graphic bug
600		SALVATION ARM		Hokuto No Ken II			Level 5				Graphic bug
721		BEASTMAN		Nekketsu Kouha Kunio-kun (Renegade)	Level 4 – Stage 2		Graphic bug
747		COMBATIVE		Nekketsu Kouha Kunio-kun (Renegade)	Level 4 – Stage 3		Graphic bug
794		CHARM			Nekketsu Kouha Kunio-kun (Renegade)	Level 4 – Stage 1		Reboot
876		EXILEMANER		Nekketsu Kouha Kunio-kun (Renegade)	Level 4 – Stage 4		Graphic bug
1029		SALVATION ARM I		Hokuto No Ken II			Level 5				Graphic bug
By comparing the code of these 2 games inside the 1050 in 1 rom and the code inside the 2 original roms of these games :

For Nekketsu Kouha Kunio-kun (Renegade), the differences with the original rom are :

Image

For Hokuto No Ken II, the differences with the original rom are :

Image
Image
Image


Unlike the previous B-Wings game, I can't tell if these 10 bugs exist when running the cartridge on a real Nintendo NES, nor if they existed when the cartridge was manufactured. If I find a NES, I will can test these entries to verify...
Attachments
bugHokutoNoKenII-5.png
bugHokutoNoKenII-fusion-2.png
bugHokutoNoKenII-fusion-1.png
bug1050in1-NekketsuKouhaKuniokun-fusion.png
User avatar
aquasnake
Posts: 515
Joined: Fri Sep 13, 2019 11:22 pm

Re: Dumping a multigames 1050 in 1 NES Cartridge with INLretro

Post by aquasnake »

CPU_A3 seems more like a LOCKOUT bit rather than a CHR write protection bit

CHR write protection is set according to different PRG modes

Code: Select all

						casez (cpu_addr_in[2:0])
							3'b101: begin // FDS conversion
								chr_write_enabled = 1;
							end
							3'b?00, // BNROM/NROM-256 like
							3'b?11: begin // NROM-128 like
								chr_write_enabled = 0;
							end
							3'b001: begin // UNROM like
								chr_write_enabled = 1;
							end
							/*
							3'b?10: begin // NROM-64 like, ever used???
								chr_write_enabled = 1;
							end
							*/
						endcase

Post Reply