Commit Graph

224 Commits

Author SHA1 Message Date
negativeExponent
e8f1cd53eb Add mapper 334 2022-02-07 15:23:44 +08:00
negativeExponent
4dc7da8e26 Add mapper 432 2022-02-07 15:03:24 +08:00
negativeExponent
34210282bc Add mapper 415 2022-02-07 13:17:32 +08:00
negativeExponent
74fa445659 Add mapper 416 2022-02-07 12:45:48 +08:00
negativeExponent
6e9c54f795 Add mapper 404 2022-02-06 21:35:17 +08:00
negativeExponent
b7a1c3bbb3 Add mapper 410 2022-02-06 21:10:29 +08:00
negativeExponent
2573917946 Add mapper 368 2022-02-06 20:17:55 +08:00
negativeExponent
75774dddc0 Add mapper 377 2022-02-06 19:22:43 +08:00
negativeExponent
bc8767ef26 Add mapper 396 2022-02-06 18:06:05 +08:00
negativeExponent
17ad461e7d mapper cleanups (#494)
* m215: Fix support for submapper 1 cart

* Switch UNL43272 to new Mapper242 implementation

* Merge mappers BMC-70in1/B and 236

* Merge 58/213/GK-192

* Assign GS-2004/GS-2014 to mapper 283

* Cleanup

Co-authored-by: negativeExponent <negativeExponent@users.noreply.github.com>
2022-02-05 19:19:33 +01:00
negativeExponent
85ace685b9 mapper-related updates and fixes (#491)
* m116: Fix support for Huang-2 chip

* Provide 8K CHR ram if no CHR rom/ram is provided due to bad headers

* m15: Implement CHR write-protect

* Update Namco 106

- Cleanup save state struct
- Implement nametable mirroring
- fix sound issue (fceux)

Co-authored-by: negativeExponent <negativeExponent@users.noreply.github.com>
2022-02-01 08:14:16 +01:00
negativeExponent
e0200b03c8 Fix states loading issue of some games in big-endian platforms (#490)
* Fix states loading issue of some games in big-endian platforms

* Typo

Co-authored-by: negativeExponent <negativeExponent@users.noreply.github.com>
2022-01-31 16:34:07 +01:00
negativeExponent
03c42f32b3 update (#483)
* Fix missing GameStateRestore

* Add mapper 403

Co-authored-by: negativeExponent <negativeExponent@users.noreply.github.com>
2022-01-24 15:53:53 +01:00
negativeExponent
758a51eacb couple of mapper fixes (#482)
* Fix a couple of mapper issues

- Implement info->Close, to free any unallocated memory (e.g. WRAM)
- Add missing GameStateRestore function
- Add missing state variable

* Simplify header parsing

* Update ines-correct.h

Co-authored-by: negativeExponent <negativeExponent@users.noreply.github.com>
2022-01-23 19:20:46 +01:00
NRS-NewRisingSun
d72c64e5d9 Exponential notation of NES 2.0 ROM sizes; mappers (#480)
* Support 2 MIB mapper 314 (Y2K 76-in-1)

* Mapper 57: Forgot one Sync() statement

* Mapper 83: Correction for 256 KiB PRG+512 KiB CHR games

* Mapper 114: Use NES 2.0 submapper field if available to differentiate between scrambling patterns

* NES 2.0: Support exponential notation of PRG/CHR sizes, thus adding support for 4 KiB and 8 KiB ROM files.

* Add mapper 553.

* Correct the database regarding the Nanjing game Pegasus Senya

* Add submapper 5 (HST-162) to mapper 176

* Add mapper 436

* Mapper 176.5 has a CNROM latch as well, though it works a bit differently than submapper 1's

* Added mapper 429

* Added mapper 380 submapper 1

* Added mapper 437

* Added mapper 456

* Forgot to include math.h for pow

* Added mapper 434

* Added mapper 452

* Added mapper 438

* Added mappers 391 and 444, corrected the mixup with BS-110 and NC7000M

* Added mapper 443. Added menu-switching funcionality to mapper 444

Co-authored-by: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com>
2022-01-06 08:22:18 +01:00
NewRisingSun
ea17977c20 Mapper 319: Use hp898f.c only for the old incorrect UNIF bank order, and 319.c for all NES 2.0 ROMs. Add CNROM mode and solder pad switch to the latter. 2021-11-14 17:01:55 +01:00
NewRisingSun
fe6c0c4513 Added support for mapper 383. 2021-11-14 16:11:24 +01:00
NewRisingSun
d99e6e563c Add support for mapper 376 2021-10-22 22:29:26 +02:00
NewRisingSun
21c829ba43 Add mapper 236 2021-09-21 22:21:44 +02:00
Autechre
18ca08dc8c Merge pull request #457 from NRS-NewRisingSun/mappers-16x
Mappers 162/163/164/558
2021-06-14 15:15:22 +02:00
twinaphex
658ef18d2e Cleanups; turn some functions static 2021-06-06 02:02:46 +02:00
twinaphex
84bb7c4e9d Cleanup 2021-06-06 01:53:33 +02:00
Autechre
aa4615c417 Revert "some cleanups" 2021-06-05 15:05:07 +02:00
twinaphex
cbc17a077b iNESLoad - some code is not used except for printing some information,
stub it out with DEBUG ifdefs
2021-06-05 14:55:17 +02:00
negativeExponent
46ca02a206 Move settings-related vars to FSettings struct
- Just some more cleanups
2021-06-02 04:18:53 +08:00
NewRisingSun
97ffbc5f83 Rewrite mappers 162,163,164; add mapper 558. Add EEPROM support to 164. 2021-05-30 01:08:41 +02:00
NewRisingSun
ce2d55c3e8 Update the database for mapper 176 games. Set the iNES2 flag when the submapper field is used. 2021-05-28 21:22:18 +02:00
NewRisingSun
b02fa46cb1 Add support for Jncota variant, mapper 523 2021-05-26 20:36:06 +02:00
Autechre
107d886bd8 Merge pull request #446 from NRS-NewRisingSun/mapper59
Make mapper 59 always reset to menu. Add previous mapper 60 ROM files to iNES correction table.
2021-04-14 21:47:05 +02:00
NewRisingSun
89bd38c33b Typo in ines.c 2021-04-14 19:30:47 +02:00
NewRisingSun
cf476194ce Combine UNIF AB-G1L, WELL-NO-DG450 and TF2740 into NES 2.0 Mapper 428. 2021-04-14 19:16:57 +02:00
NewRisingSun
86356c24c2 Make mapper 59 always reset to menu. Add mapper 59 multicarts that had previously been set to 60, colliding with 'Reset-based 4-in-1', to CRC-based correction table. 2021-04-14 19:09:02 +02:00
NewRisingSun
0657d21366 MINDKIDS accessible as NES 2.0 m268.1; mapper 224 is MINDKIDS; remove KT-008 remnants from mmc3.c 2021-04-10 14:38:49 +02:00
NewRisingSun
c06e25ed30 Rewrite and unify J.Y. ASIC emulation. Add multicart mappers. 2021-04-08 17:06:17 +02:00
NewRisingSun
82ce944aa3 Combine the very similar mappers 126/422/534/BS400/BS4040 into one common source code file. Rewrite for accuracy and compatibility with all known game dumps. Replace FUTURE KIDS hack with correct CNROM masking. 2021-01-31 15:51:09 +01:00
Autechre
9223fe174f Merge pull request #415 from Dwedit/save_state_fix
Save state fix
2020-12-30 22:08:04 +01:00
Dwedit
5fc31e82be Fixed a bug that caused extended save state information to be truncated early. 2020-12-30 15:33:27 -05:00
negativeExponent
8deefc3bef Fix warning 2020-11-17 06:52:11 +08:00
negativeExponent
565391c213 Directly apply NES 2.0 overrides when available 2020-11-17 06:46:41 +08:00
negativeExponent
faa58abe0f Add mapper 401 2020-11-17 03:30:05 +08:00
negativeExponent
14b689cde6 Add mapper 293 2020-11-16 18:17:00 +08:00
negativeExponent
344c12301f Add mapper 370 and 395, update mapper 221
Add support for mapper 395
Add support for mapper 370
Update mapper 221 for 2MB bank support
2020-10-31 00:16:42 +08:00
negativeExponent
5538bbedd9 Update mapper 059/060
Excerpt from nesdev:

NESten's Mapper DLL v1.0 contained an incorrect implementation of T3H53 as iNES mapper 059 and UNIF mapper BMC-T3H53. The UNIF implementation was improved in NESten's Mapper DLL v1.2 while the iNES implementation was not, causing confusion about what kind of cartridge the unimproved mapper 59 was supposed to be. As Nintendulator's mapper DLL is based on NESten's mapper DLL, this was carried over to Nintendulator. Presumably as a result of this confusion, FCEUX and others put the correct implementation of T3H53 at INES Mapper 060, displacing the "Reset-based NROM-128 4-in-1" in the process.

With that said above, im following nesdev's notes and change the
following:

- Reassign Mapper 60 as Mapper 59.
- Add BMC-T3H53, a UNIF cart using the same UNIF-board D1038 which is
  assigned as iNES Mapper 59
- Add the Reset-Based NRON-128 mapper, Mapper 60
2020-10-22 05:49:41 +08:00
negativeExponent
412e40698d Fix overrides incorrectly setting flags 2020-10-19 08:18:23 +08:00
Autechre
547bd25709 Merge pull request #390 from negativeExponent/mapper411
Add mapper 411
2020-10-11 17:17:48 +02:00
negativeExponent
8073cfba7e Add mapper 411 2020-10-11 22:56:00 +08:00
negativeExponent
5657cb9a1c Add mapper 554 2020-10-11 22:48:58 +08:00
negativeExponent
5263e0a22a ines.c: Simplify rom info logs and cleanup 2020-05-03 14:35:21 +08:00
negativeExponent
40ff23d0df Update ines-correct.h
- Add overrides for FK23C
- Move MMC1 overrides
- Move MMC5 overrides
2020-04-25 19:17:49 +08:00
negativeExponent
53a43479f3 Move overrides out of some mappers
Move mapper-based overrides out and use ines-correct.h if possible. Affects the following mappers below:
- Move Cnrom database to ines-correct.h
- Mapper 201 update
- Mapper 91: Add Street Fighter III (Submapper 1) to ines-correct.h
- Add dipswitch notes to m237
- Update mapper9 (PC10 version of Mike Tyson's Punch-out)
2020-04-08 16:29:04 +08:00