Commit graph

287 commits

Author SHA1 Message Date
Sour
b84d4f23cf PCE: Improved VRAM read/write delays
Not perfect, but a lot closer than before. Matches hardware results pretty well in most scenarios, but most of it is guesswork
Fixed Wonder Momo and seems to not have any negative impacts on other games
2023-12-23 13:28:21 +09:00
Sour
7298c236c5 PCE: Fixed timer IRQ regression that caused a freeze in After Burner 2 2023-12-22 14:19:42 +09:00
Sour
5308983ebb Added SMS/GG/SG-1000 support 2023-12-14 22:23:27 +09:00
Sour
6142ba3557 PCE: Allow SF2 mapper to access more ROM 2023-12-03 12:41:41 +09:00
Sour
3cbe2bebfe Linux: Fixed clang warnings 2023-11-21 20:05:27 +09:00
Sour
2926a49dbe PCE: Fixed endless intro restart bug in Tenshi no Uta 2 2023-11-19 23:39:54 +09:00
Sour
94927419d6 PCE: Fixed (?) frequency for noise
Matches what PCEHawk and Mednafen sound like
2023-11-01 22:39:31 +09:00
Sour
7a2927793c PCE: Fixed SGX games video issue caused by another recent fix
Row buffer for VDC2 was being cleared too early, causing the 2nd layer to always be empty
2023-10-30 21:44:23 +09:00
Sour
bb57e13572 PCE: Fixed data from previous frames sometimes being shown on screen when VCE clock changes mid-scanline
Caused flickering line in Order of the Griffon
2023-09-30 17:31:49 +09:00
Sour
eb17aab85d Debugger: Sprite viewer - Added option to change background color 2023-09-26 18:58:50 +09:00
Sour
20148e8c7e PCE: Supergrafx - Tweaked window position based on hardware test result (for 7mhz clock) 2023-09-22 21:29:48 +09:00
Sour
f4b0d01ef9 PCE: Supergrafx - Improve window behavior when modifying window settings during the scanline 2023-09-22 21:09:17 +09:00
Sour
b11369ec7a Debugger: PCE - Event Viewer - Don't interpret supergrafx VPC writes as VDC writes 2023-09-15 22:53:30 +09:00
Sour
5f89c254ad PCE: Improved start timing for the SATB DMA transfer
This was needed to fix a homebrew rom (which works on hardware)
2023-09-15 22:53:24 +09:00
Sour
abd779c1ce PCE: Fixed VRAM-VRAM DMA speed
This was apparently running 2x faster than hardware
2023-09-15 18:20:55 +09:00
Sour
0a95eeea23 PCE: Supergrafx - Improved window position 2023-09-15 18:19:38 +09:00
Sour
0587cd2174 PCE: Supergrafx - Fixed background color when neither layer is enabled 2023-09-15 18:18:19 +09:00
Sour
094d433709 PCE: Fixed regression that caused incorrect audio in Order of the Griffon
Timer IRQ appears to behave slightly differently from VDC IRQs, the previous fix for Jackie Chan+Final Soldier broke Order of the Griffon. This fix allows all 3 games to work properly.
2023-08-07 23:20:28 +09:00
Sour
8701d3c15c Debugger: Prevent crash when attempting to load a .dbg file for GB roms
Display error in log window instead and ignore the .dbg file
2023-07-11 16:46:35 +09:00
Sour
0a6814d881 Debugger: Assembler - Fixed assembler issues for NES/SNES/PCE when using "edit selected code"
Original byte code did not match the assembler's code based on the assembly code in some scenarios
2023-07-10 18:45:46 +09:00
Sour
a1cd60be33 PCE: Improved/fixed vram read address increment logic/timing
Fixes issues found by Vectrex28 in a homebrew rom
2023-07-05 21:27:46 +09:00
Sour
411a4e1711 Debugger: PCE - Fixed crash when power cycling when "draw partial frame" is enabled
Clock divider was 0, causing a division by 0
2023-05-14 23:34:56 -04:00
Sour
2761a5814e UI: Fixed broken screenshots in load/save state menus on NES when a hd pack is loaded 2023-04-22 20:44:25 -04:00
Sour
36e9db1cb5 PCE: Fixed SCSI drive behavior when an invalid command is received
Fixes crash in It Came from The Desert during the introduction
2023-04-20 20:06:38 -04:00
Sour
fd17a0669b Debugger: PCE - Log SCSI commands in debug log 2023-04-20 20:06:14 -04:00
Sour
01384245ba Debugger: Fixed assembler issues when using labels with relative jumps
Affects NES, SNES, PCE
2023-04-18 20:53:32 -04:00
Sour
bc491a7e2a PCE: Fixed ADPCM issue when setting read address
Address should only be updated if the previous write had the bit cleared
Fixes a crash in the Games Express game "CD Mahjong Bishoujo Chuushinha" after character selection
2023-04-17 21:30:53 -04:00
Sour
452785fee5 PCE: Added support for Games Express CD card/games 2023-04-17 21:29:14 -04:00
Sour
4119de9e9c Debugger: Event viewer - Added right-click menu options for viewer/list 2023-04-16 22:30:47 -04:00
Sour
44233413a1 Debugger: Prevent load state/reset counters from triggering uninit ram read break on all reads 2023-04-15 15:34:24 -04:00
Sour
6e82199b0f Debugger: Prevent dummy reads from triggering uninit read breakpoint (NES/PCE) 2023-04-13 22:28:22 -04:00
Sour
7090fcdb71 Debugger: Warn when "save rom as" fails 2023-04-11 22:33:02 -04:00
Sour
dc52149c7d PCE: Always init CD-ROM save ram with 0s (+header)
Improves compatibility with some games that don't like the random data
2023-04-11 18:03:18 -04:00
Sour
63b779be8d PCE: Reset cycle counter at the end of DMA 2023-04-07 13:39:20 -04:00
Sour
2f3ccc92c3 PCE: Fixed CPU bug that caused memory flag to not be restored properly by RTI
If any IRQ occured immediately after SET, returning from the IRQ would have the memory flag cleared, which caused the next instruction to behave completely differently from what was intended.
This caused issues in Ankoku Densetsu because it uses SET a lot and has the timer IRQ running constantly
2023-04-04 22:10:08 -04:00
Sour
f1921b365f PCE: Fixed freeze when using the start option in Record of Lodoss War 2023-04-02 16:45:29 -04:00
Sour
3a77015a7c Debugger: PCE - Fixed read/write highlights and breakpoints for ADPCM memory 2023-04-02 15:39:12 -04:00
Sour
ce9dcaec62 PCE: Fixed SGX priority mode 2 behavior
Based on sgx3b demo (which is supposed to have been validated on hardware)
No supergrafx games appear to use this mode
2023-04-02 15:23:50 -04:00
Sour
01c65c3549 PCE: Fixed shaking in Final Soldier & Jackie Chan
Both games do CLI followed by LDA $0000 in their IRQ handler. The old logic would prevent an additional IRQ from firing after the LDA, because the LDA acknowledges the IRQ.  But at this point, the CPU already processed the IRQ and will execute it anyway (the acknowledge is too late because it occurs on the last cycle of the instruction).  Both games rely on this behavior, otherwise the IRQ handler's logic is executed too fast and the shaking occurs depending on the timing of the timer irq vs the rcr irq
2023-04-01 17:17:18 -04:00
Sour
4ea985f4b5 When a file has an unknown extension, check for known file signatures to pick a core 2023-03-12 16:39:48 -04:00
Sour
1235fb22ea PCE: Fixed PSG emulation issues
-Noise timer was affecting the frequency for channels 5 & 6 by mistake
-Fixed output changes being associated with the wrong timestamp

Fixes sound issues in Aoi Blink, Aldynes, Cross Wiber (and most likely more)
2023-02-17 23:35:14 -05:00
Sour
c363474035 Rewind: Reduce memory usage, increase save state frequency (which reduces delay when rewind starts) 2023-02-16 22:18:56 -05:00
Sour
05495c7c1c SNES/PCE: Added option to force the cores to always output the same resolution
Changes the resolution for PCE games (resolution now matches the current game, rather than always being forced to 4x), which makes all filters work better than before. Enabling the fixed resolution option reverts to the old behavior.
On SNES, this forces the output to always be 2x scale, which prevents resolution changes when toggling high res mode on/off. This allows AVI recording to work when a game changes resolution while recording
2023-02-15 22:44:42 -05:00
Sour
d255cf3db0 Fixed compilation warnings 2023-02-15 00:12:45 -05:00
Sour
2cf8a4f49b Debugger: PCE - Fixed deadlock/crashes triggered when processing ST0/1/2 instructions in disassembly 2023-02-13 21:37:19 -05:00
Sour
186f181030 Debugger: PCE - Added psgchannel/vdcreg to expression tokens (+ fixed other tokens not working due to wrong case) 2023-02-13 21:35:44 -05:00
Sour
2085af03a7 NES: Fixed colors being slightly different than palette
Caused by the code used to apply brightness/etc. settings.  Disabled code when settings are at default values, and fixed rounding issue that caused the problem in the first place
2023-02-11 10:26:20 -05:00
Sour
bf2fa11053 Movies: Fixed desync when using rewind during movie playback
Affected all systems except NES
2023-02-10 20:59:21 -05:00
Sour
236cca1cd9 Movies: Fixed freeze when attempting to load a movie while the debugger is opened
Fixed an identical freeze when switching tracks in a HES file while the debugger is opened
2023-02-08 22:34:00 -05:00
Sour
963f458b90 PCE: Fixed out-of-bounds array access when a sprite was at x>=992 that caused sprites to disappear from the screen
Affected Riot Zone
2023-01-28 17:36:11 -05:00