Commit Graph

90 Commits

Author SHA1 Message Date
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
negativeExponent
5df33af7dd Move battery-backed prg ram override to ines-correct.h 2020-04-08 00:14:53 +08:00
negativeExponent
03dc02cfc3 Start expanding internal override database (ines-correct.h) 2020-04-07 12:44:50 +08:00
negativeExponent
a9f679ef15 Add 42-in-80000 multicart (m380) 2020-03-24 01:34:03 +08:00
negativeExponent
a09293bcc0 Add mapper 389 (Caltron 9-in-1) 2020-03-22 11:30:49 +08:00
negativeExponent
33ae3916b2 ines.c: Cleanup mapper struct and iNESLoad()
- cleaned and sorted the nes mapper index struct
- move items around in iNESLoad() and use CartInfo struct where applicable
- other minor cleanups
2020-03-12 17:29:07 +08:00
negativeExponent
a69354c1c2 Add mapper 369 (BMC-N49C-300) 2020-03-07 01:55:59 +08:00
negativeExponent
6a805ea424 mapper201: Add support for 21-in-1 (CF-043) (2006-V) (Unl) [p1] 2020-03-07 01:55:36 +08:00
negativeExponent
e9eb314311 Fix size inconsistency for prg and chr
- Unif shows ROM_size and VROM_size in bytes, while codebase expects these to be
in chunks of 16K for prg and 8K for chr. Update Unif to represent size as its
expected to be.

- Change PRGRomSize and CHRRomSize to represent sizes in bytes to make it consistent
with the rest of the size-related variables in struct CartInfo.
2020-03-06 02:57:16 +08:00
negativeExponent
a0458bbf98 iNes: Prevent invalidating rom when size does not match header 2020-03-06 02:53:21 +08:00
negativeExponent
aee4669b8d Better detection of mapper numbers based on NES header version 2020-03-01 23:21:59 +08:00
negativeExponent
0979e66e1c Mapper 235 update support for 1MB/2MB carts and cart with unrom block 2020-02-25 23:09:02 +08:00
negativeExponent
045ea32f8d Fix duplicate log info for CHR-RAM 2020-02-19 20:19:08 +08:00
negativeExponent
48300986c4 Add mapper 218 2020-02-19 20:19:08 +08:00
negativeExponent
6e7d5abaab Update implementation of some unlicensed mappers 2020-02-17 09:32:29 +08:00
negativeExponent
b7050cb55d Add mappers 111, 356, 269, 353
- backport mapper 111 (Cheapocabra or GTROM) from fceux
2020-02-17 09:32:29 +08:00
negativeExponent
0b4b5421dc Add BMC-SB-5013 (m359) and UNL-82112C (m540) 2020-02-17 09:32:29 +08:00
negativeExponent
310b75964f Add mapper 543, 550, 516 2020-02-17 09:32:29 +08:00
negativeExponent
cfe11b9b95 MMC1: Better work ram and battery saves support for size greater than 8K 2020-02-17 09:31:01 +08:00
negativeExponent
7ba3350900 Add mappers 382, 534, 539 2020-02-17 09:26:01 +08:00
negativeExponent
43ca4755bb Update mapper 150/243 (unif UNL-Sachen-74LS374N) 2020-02-17 09:26:01 +08:00
negativeExponent
9150960326 Add mappers 360, 533 2020-02-17 09:20:13 +08:00
negativeExponent
1eaed36344 Fix alignment 2020-02-16 22:30:15 +08:00
negativeExponent
d6143ef2ef Rename some cart info variables that indicates size (readability) 2020-02-16 22:15:25 +08:00
negativeExponent
bbce95d5aa Add prg and chr checksums and rearrange rom info logs 2020-02-16 21:54:21 +08:00
negativeExponent
fa7b15eb61 Update region overrides and overclocking
- ines.c - misc cleanups
- Fix Dendy not restored when changing overrides back to auto mode
- directly apply new scanlines and additional scanlines when changing overclock settings
- (readability) change variable name overlock_state to overclock_enabled
2020-02-07 20:50:25 +08:00
negativeExponent
f4756f9357 Add mapper 297
- also add appropriate input overrides since cart is light gun based
2020-01-31 20:19:25 +08:00
negativeExponent
65ff96cd5c Add mapper 294 (m134) 2020-01-31 00:13:09 +08:00
negativeExponent
c08697a024 Add mapper 267 2020-01-29 20:00:22 +08:00
negativeExponent
45d553100a Add mapper 390 2020-01-29 03:10:11 +08:00
negativeExponent
fd823c4021 Add mapper 374 2020-01-29 01:09:31 +08:00
negativeExponent
0635e047b2 Add mapper 288
- dipswitch, menu based
2020-01-28 13:45:59 +08:00
negativeExponent
b6cb482bfe Add mapper 381 2020-01-28 12:07:47 +08:00
negativeExponent
f4cb27d578 Add mapper 538 2020-01-28 11:42:04 +08:00
negativeExponent
371e949ba1 Add mapper 541 2020-01-28 11:06:43 +08:00