Commit Graph

252 Commits

Author SHA1 Message Date
vadosnaprimer
d1e7cd6bea add CPU hooking functionality
can be used by a frontend to implement breakpoints or tracelogging
currently hooked: M68K executing/reading/writing, VDP reading/writing (only for MegaDrive)
2019-04-21 20:35:38 +03:00
ekeeke
5f8156ef72 [Core/MD] fixed ROM size detection when enabling/disabling SRAM on power-on (fixes SRAM support in Hardball 95, NBA Hang Time and other 3MB games with SRAM mapped at 0x300000) 2019-03-29 01:51:23 +01:00
ekeeke
74e54f7041 Merge branch 'master' of https://github.com/ekeeke/Genesis-Plus-GX 2019-03-23 14:32:58 +01:00
ekeeke
d927c6e4cb [Gamecube/Wii] fixed compilation errors/warnings with latest devkitPPC (r24) 2019-03-23 14:32:34 +01:00
ekeeke
b1ccc1aaba [Core/CD] improved CD hardware reset timing accuracy on software reset 2019-03-23 14:01:43 +01:00
ekeeke
76d6fb87a2 [Core/CD] increased CD access latency (fixes "Aisle Lord (J)") 2019-03-23 13:56:50 +01:00
ekeeke
cae62cd675 [Core/CD] fixed Main-CPU/Sub-CPU synchronization edge case 2019-03-23 13:55:44 +01:00
ekeeke
31a15eaf7c [Core/MD] fixed SSF2 mapper size limit 2019-03-23 13:52:43 +01:00
ekeeke
c953707ef5 [Core/CPU] fixed M68K STOP instruction edge case (case where STOP instruction unmasks pending interrupt) 2019-03-23 13:46:23 +01:00
ekeeke
e819af4553 [Core/MS] fixed savestate when Boot ROM is running 2019-03-23 13:43:55 +01:00
ekeeke
33328c7abb [Core/MD] fixed savestate when Boot ROM is running 2019-03-23 13:41:56 +01:00
tokumeiwokiboushimasu
fbc949cc47
Build fixes
With gcc-8.2.1 on Fedora29, there are the errors below.

../core/z80/z80.c:470:21: error: ISO C does not allow extra ';' outside of a function [-Wpedantic]
 PROTOTYPES(Z80op,op);
                     ^
../core/z80/z80.c:471:21: error: ISO C does not allow extra ';' outside of a function [-Wpedantic]
 PROTOTYPES(Z80cb,cb);
                     ^
../core/z80/z80.c:472:21: error: ISO C does not allow extra ';' outside of a function [-Wpedantic]
 PROTOTYPES(Z80dd,dd);
                     ^
../core/z80/z80.c:473:21: error: ISO C does not allow extra ';' outside of a function [-Wpedantic]
 PROTOTYPES(Z80ed,ed);
                     ^
../core/z80/z80.c:474:21: error: ISO C does not allow extra ';' outside of a function [-Wpedantic]
 PROTOTYPES(Z80fd,fd);
                     ^
../core/z80/z80.c:475:25: error: ISO C does not allow extra ';' outside of a function [-Wpedantic]
 PROTOTYPES(Z80xycb,xycb);
                         ^
make: *** [Makefile.sdl2:183: build_sdl2/z80.o] Error 1
2019-02-26 00:12:22 +09:00
ekeeke
32079418a9 [Core/MD] fixed SRAM power-on state with games larger than 2MB (Duke Nukem 3D, Triple Play 96, Triple Play - Gold Edition) 2019-01-26 18:33:41 +01:00
ekeeke
5c0c613bbc [Core/IO] fixed regression with 6-buttons control pad emulation (fixes Duke Nukem 3D) 2019-01-21 23:24:36 +01:00
ekeeke
50dfa94a67 [Core/CPU] fixed 68k timing of BTST Dn,#Imm instruction (verified by Flamewing in original microcode) 2019-01-09 01:08:28 +01:00
ekeeke
49f5a227bd [Core/CPU] fixed Z80 core compilation warnings (unused variable) 2019-01-09 01:07:19 +01:00
ekeeke
edf6abad3f [Core/IO] added short description of I/O ports (credits to Charles MacDonald for original documentation) 2019-01-09 00:59:40 +01:00
ekeeke
0b75d4ba74 [Core/CD] improved accuracy of Word-RAM byte writes (verified on schematic) 2019-01-09 00:54:59 +01:00
ekeeke
e075526f71 [Core/MS] added Missile Defense 3D [Proto] to internal database 2019-01-09 00:52:45 +01:00
ekeeke
39c3c6634b [Core/CD] improved CDD status codes description & added support for (unused ?) error request code 2018-08-31 01:52:31 +02:00
ekeeke
d539061d99 [Core/CD] added support for Wondermega & Wondermega M2/X'Eye specific fader hardware (fixes CD-DA issues and freeze when using Wondermega, Wondermega M2 or X'Eye BIOS) 2018-08-30 18:37:12 +02:00
EkeEke
d71a8a2fc5 Merge branch 'master' of https://github.com/ekeeke/Genesis-Plus-GX 2018-08-11 23:42:09 +02:00
EkeEke
ee4494a815 [Core/IO] improved 6-buttons controller emulation (fixes 'ToeJam & Earl in Panic on Funkotron') 2018-08-11 02:09:13 +02:00
Clownacy
7a4e30d27e [Core/CD] fix libFLAC compilation on MinGW-w64
Without autotools, fseeko cannot be detected automatically, so we cheat
a little.
2018-07-09 18:53:09 +01:00
Vladimir Kononovich
191665c8d1 Visual Studio 2017 sdl2 solution. 2018-06-30 20:51:37 +03:00
EkeEke
724015c5a5 [Core/CD] fixed CHD data initialization (fixes potential crashes when loading non-CHD CD image files after 10MB ROM file) 2018-06-27 01:42:03 +02:00
EkeEke
ae28f87402 [Core/MS] improved region detection (fixes BIOS support with Japanese games) 2018-06-21 00:28:57 +02:00
nukeykt
3aae6e4f09 [Core/Sound] Nuked OPN2: removed discrete ym3438 core 2018-02-01 00:01:03 +09:00
nukeykt
06b3950d73 [Core/Sound] accurate YM2612/3438 status read emulation on invalid port 2018-01-29 13:24:13 +09:00
EkeEke
fee2bc8c28 [Core/Sound] added accurate YM2612 status & BUSY flag emulation for MAME core (verified on discrete and ASIC-integrated chips) 2018-01-07 16:44:14 +01:00
EkeEke
d0aa36acc3 [Core/CPU] improved 68K/Z80 synchronization 2018-01-07 16:24:28 +01:00
EkeEke
902dc4c4c0 [Core/Sound] added (optional) YM2612 DAC distortion emulation in MAME core & removed configurable YM2612 DAC resolution (deprecated) 2017-12-22 20:43:28 +01:00
EkeEke
b62ce884b8 [Core/Sound] added nuked YM3438 core to SDL port and fixed some GCC warnings 2017-12-22 20:37:58 +01:00
EkeEke
46f3e640e8 [Core/SG] improved SG-1000 cartridge memory mapping (fixes Safari Hunting crash when accessing unmapped ROM area) 2017-12-13 23:09:29 +01:00
nukeykt
eff16f5a81 [Core/Sound] Nuked OPN2: Minor PCM mode tweak. 2017-10-10 23:51:58 +09:00
ekeeke
5ec1cd099f Merge pull request #184 from bkoropoff/overclock-tidy
[Core] Improved CPU overclock granularity and added (optional) sprite limits removal support (bkoropoff)
2017-10-10 10:46:16 +02:00
Brian Koropoff
fe21bb5950 Tidy up overclock code
Also use full available precision for overclock ratio.
2017-10-07 17:24:37 -07:00
EkeEke
5c7eb1a55d [Core/Sound] fixed compilation warnings with Nuked core 2017-10-07 00:49:14 +02:00
nukeykt
64356591d6 [Core/Sound] Nuked OPN2: fix envelope generator increment calculation 2017-10-06 00:25:16 +09:00
Brian Koropoff
e0ef0902e9 Add option to remove per-line sprite limits 2017-10-04 22:24:31 -07:00
Brian Koropoff
f3e0641b1b Allow more fine-grained overclocking
Some games can benefit from a little overclocking but start behaving
strangely at 2x.  Make the internal overclock ratio a fixed point
number and add 3 fractional settings.
2017-10-04 22:07:45 -07:00
ekeeke
2345d98b69 Merge pull request #181 from libretro/master
[Core/CPU] add optional 68K and Z80 overclocking
2017-10-04 11:19:10 +02:00
Brian Koropoff
2135365d5c Add experimental overclock option.
This reduces all cycle costs by half for the primary CPU.  There
is a delay upon loading before overclocking is applied as a
workaround for some games that detect PAL/NTSC systems by counting
cycles in a frame at startup.
2017-10-03 16:46:17 -07:00
nukeykt
573120e4f6 Nuked OPN2: requested changes 2 2017-09-29 22:37:13 +09:00
nukeykt
405db5d9f4 Nuked OPN2: requested changes 2017-09-29 18:01:03 +09:00
nukeykt
51f802b2cc Nuked OPN2: ASIC YM3438 & YM2612 emulation 2017-09-29 01:45:49 +09:00
nukeykt
27a77147aa Nuked OPN2: optimize detune calculation 2017-09-28 19:54:12 +09:00
nukeykt
6a23a42540 Nuked OPN2: minor tweaks 2017-09-28 17:00:31 +09:00
ekeeke
e2774c7b8a Update ym2612.c
[Core/YM2612] minor optimizations
2017-09-27 13:58:22 +02:00
nukeykt
eb457641a8 Nuked OPN2: Don't attack if key is off 2017-09-26 20:36:07 +09:00