Commit Graph

249 Commits

Author SHA1 Message Date
twinaphex
3dbf430262 Wrap all fopen access - go through FCEUD_UTF8fopen isntead 2021-06-05 21:07:55 +02:00
NewRisingSun
16bec051bf Make sure the comments reflect what the code actually does. 2021-05-28 22:03:19 +02:00
NewRisingSun
e1f4133bb2 Improve the UNIF to subType heuristics, since UNIF ROMs do not use the database in ines-correct.h. 2021-05-28 21:46:55 +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
NewRisingSun
3cc9c32306 Use submappers and apply latest hardware findings. Use a heuristic to determine whether to change the DIP switch on every reset. 2021-05-26 20:19:25 +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
825cdb8788 Add lock bit, necessary for NT-234's Road Fighter 2021-04-14 21:03:59 +02:00
NewRisingSun
9cfea5b7d1 Typos in 428.c 2021-04-14 19:29:08 +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
f3bdbd6581 Forgot one KT-008 hack remnant. 2021-04-10 21:40:01 +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
negativeExponent
50b9024080 more C89 fixes 2021-04-10 02:21:29 +08:00
negativeExponent
491975cf97 C89 fixes 2021-04-09 20:28:15 +08:00
twinaphex
cb9ea8f94e More C89 build fixes - for loop initial declarations 2021-04-08 17:50:56 +02:00
twinaphex
960528aa15 Style nits, C89 build fixes 2021-04-08 17:46:51 +02:00
NewRisingSun
d14623a966 readALU_DIP already returned a value in every case, but LGTM apparently did not get it. 2021-04-08 17:27:41 +02:00
NewRisingSun
c06e25ed30 Rewrite and unify J.Y. ASIC emulation. Add multicart mappers. 2021-04-08 17:06:17 +02:00
NewRisingSun
f4a5c2a420 Mapper 332: Add CNROM mode, support larger multicarts 2021-04-07 18:45:37 +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
negativeExponent
8deefc3bef Fix warning 2020-11-17 06:52:11 +08:00
negativeExponent
d98245e49c Misc update 2020-11-17 06:40:10 +08:00
negativeExponent
faa58abe0f Add mapper 401 2020-11-17 03:30:05 +08:00
negativeExponent
0cc55ba1f1 m293: Fix alignment and update 2020-11-17 00:19:02 +08:00
negativeExponent
14b689cde6 Add mapper 293 2020-11-16 18:17:00 +08:00
Autechre
79b76eb197 Merge pull request #405 from michaelforney/toplevel-semicolons
Remove extraneous semicolons at top-level
2020-11-12 02:11:13 +01:00
negativeExponent
d8132fa88d Update bs4xxxr 2020-11-12 02:45:46 +08:00
Michael Forney
066899eaff Remove extraneous semicolons at top-level
These are unnecessary and not strictly allowed in ISO C.
2020-11-10 19:23:34 -08:00
negativeExponent
ed01e34323 Add unif multicarts
- Add unif board BS400R
- Add unif board BS4040R
2020-11-09 20:12:54 +08:00
Autechre
e7e7610c27 Merge pull request #401 from negativeExponent/mappers
Add mapper 370 and 395, update mapper 221
2020-10-30 17:47:45 +01:00
Autechre
0a473440c3 Merge pull request #402 from negativeExponent/fix
add workaround for some multicart games
2020-10-30 17:47:35 +01:00
negativeExponent
66dc404582 Fix #398 2020-10-31 00:23:37 +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
9f46517792 Fix some warnings reported from LGTM 2020-10-26 07:41:48 +08:00
negativeExponent
565f60c0f2 Fix some warnings 2020-10-25 08:31:41 +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
fc99e34a2c Typo 2020-10-21 21:07:13 +08:00
negativeExponent
c2594418a9 m176: Fix battery save size, silence parenthesis warning 2020-10-21 21:03:36 +08:00
negativeExponent
e0cb4d2814 Fix warnings [-Wimplicit-fallthrough=] 2020-10-21 20:55:08 +08:00
negativeExponent
2c97c53c8b m176: Fix address mask causing incorrect register writes 2020-10-20 22:13:03 +08:00
negativeExponent
023d2a397b m176: Updates
- Fix incorrect chr-bank mask (let's see which games complain again)

- Enables the 7-stage dipswitch support through reset switch.
  E.g switches multicart type on supported carts. like 10-in-1 to
  20-in-1 etc.
2020-10-19 09:17:45 +08:00
negativeExponent
7b1cb3e224 Enable default 8K wram to unif fk32ca 2020-10-13 04:27:33 +08:00
negativeExponent
658370fa90 m176: Always enable wram for ines-headered roms 2020-10-12 11:20:11 +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
e6fcff5e99 Fk23c: Fix chr issues for some games
- Affects mostly waixing using mixed chr rom/ram modes (bit 2 of ram config register $A001)
2020-04-26 08:19:45 +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