Commit graph

3354 commits

Author SHA1 Message Date
Sour
0d91684cba SGB: Added missing packet byte buffer for SGB commands
Based on binarycounter's tests and documentation: https://github.com/binarycounter/SGB_Packet_Buffer_Tests
2025-03-02 13:33:12 +09:00
Sour
e9a0e7aaa5 SGB: Improved logic to select row/bank to write pixels to
Uses hblank/vblank (when mode changes) to move to the next row/reset to the top of the screen
2025-03-02 13:23:07 +09:00
Sour
53f17745d7 SGB: Prevent freeze/lock up when resetting a MBC3 game that has a RTC clock 2025-03-02 11:25:21 +09:00
Sour
8d190963da UI: Linux - Tweak previous fix for menu focus to make it work correctly in some rarer scenarios 2025-03-02 10:51:53 +09:00
Sour
f9e4232105 UI: Command line - Fixed behavior when using relative paths to load a game while an instance of the emulator is already running 2025-03-02 09:54:41 +09:00
Sour
bd970ac08f UI: Fixed menu being focused by default when launching a game from the command line 2025-03-02 09:51:52 +09:00
Sour
211b42e91c WS: Improved IRQ handling after IRQ flag is set or SS segment is modified 2025-03-01 22:17:45 +09:00
Sour
5823761791 SMS: Implemented fairly accurate sprite eval+fetch timings, for all modes
+ Fixed VRAM read to wait until next available CPU access slot
+ Fixed NMI triggering on the wrong scanline on SMS
+ Fixed NMI issues on ColecoVision
+ Fixed random ram option not working properly on SG-1000
+ Added "Mem access" tab to tilemap viewer to see fetch patterns
2025-03-01 00:09:36 +09:00
Sour
16d6d70376 Debugger: Fixed bug that copied watch entries from rom to rom
While the debugger was active and the current rom had watch entries, opening a new rom for the same console that had never been opened in the debugger would end up copying the watch entries from the previous rom into the new rom's workspace
2025-02-26 20:38:46 +09:00
Sour
fadf7c4d44 GBA: Fixed problem with wave channel in Kidou Senshi Gundam - Seed Destiny
Wave channel was playing the wrong audio on the title screen, because some writes were being blocked.
It looks like the restriction on wave "ram" access that exists on GB don't exist on GBA
Additionally, it seems like the wave data is supposed to be stored in a large shift register (not emulated yet), rather than an array of bytes
2025-02-26 17:41:33 +09:00
Sour
7ddd25ec6c Debugger: Fixed crashes when importing .dbg symbols that contains data that exceeds the size of the loaded rom 2025-02-22 19:11:49 +09:00
Sour
3a4cba8f3d Debugger: Fixed exceptions (not visible in release builds) when displaying tooltips in the debugger 2025-02-22 19:10:58 +09:00
Sour
8dc389df49 NES: Runahead - Fixed issues switching disks or inserting coins with FDS/VS System 2025-02-20 18:43:56 +09:00
Sour
0b593d4c78 NES: FDS - Fixed IPS save data not being applied when loading the rom 2025-02-20 17:38:21 +09:00
Sour
d72658de7a NES: FDS - Fixed issues with Kosodate Gokko (unlicensed disk copying program)
+ Added option to save directly to the original rom file instead of creating .ips files (for FDS & cartridges with flashable prg/chr rom)
2025-02-19 21:27:15 +09:00
Sour
1da719bb80 NES: MMC5 - Added support for 128kb ram 2025-02-18 09:30:20 +09:00
Sour
57f136f432 GBA: Fixed APU sampling timing problem which reduced audio quality 2025-02-17 13:52:44 +09:00
Sour
352adae9f8 NES: FDS - Implement CRC checks/writes for .qd files 2025-02-15 22:38:32 +09:00
Sour
09cd8b7cec Debugger: GSU - Fixed trace log not logging the correct instructions in some scenarios 2025-02-15 20:09:02 +09:00
Sour
991136e58a Audio Player: Fixed shuffle/repeat buttons not working 2025-02-13 22:07:10 +09:00
Sour
081ae70167 Debugger: NES header editor - Fixed blank VS PPU Type value when VS System Type was not the default value 2025-02-12 17:06:38 +09:00
Sour
b1c54193d2 Fixed compilation warnings 2025-02-12 16:57:59 +09:00
Sour
6877fee0ab Fixed compilation error with latest version of VS2022 2025-02-12 16:57:42 +09:00
Sour
762e5ea617 Debugger: NES header editor - Fixed incorrect values for VS system roms 2025-02-11 21:46:30 +09:00
Sour
ea7aa40265 UI: Prevent window from being auto-resized to a scale below 1x 2025-02-11 21:15:59 +09:00
Sour
5422619516 Debugger: Fixed viewers scrolling back to the top left when clicked while out of focus 2025-02-11 20:52:30 +09:00
Sour
556b99d267 Debugger: Prevent margin clicks from removing range breakpoints that aren't shown in the margin 2025-02-11 20:51:30 +09:00
Sour
17e23462b1 Debugger: NES/SNES - Fixed scanline value in status view not being updated properly when over 261 in PAL mode 2025-02-11 20:51:03 +09:00
Sour
336c56f226 CV: Fixed incorrect gamepad mapping in xbox P2 preset 2025-02-11 20:49:51 +09:00
Sour
d0b1a9d6f5 NES: Fixed crash when changing region while playing VS Dualsystem games 2025-02-11 20:49:15 +09:00
Sour
f7ca5d06fb Debugger: Prevent rewind/step back from changing the value of frozen addresses 2025-02-11 20:48:52 +09:00
Sour
30fd76d9e0 NES: Added support for .qd format FDS roms 2025-02-07 21:06:17 +09:00
Sour
031cb7058c Debugger: Fixed issues with NES/SNES/PCE assemblers
-Labels defined within the assembler that were referred to before their definition did not work properly and ended up being assigned the wrong value (when the label's address wasn't a value between 0x100 and 0xFFFF) - this is fixed by running multiple passes until the resulting byte code stops changing.
-Fixed issues where e.g EOR $00, Y would be assembled as a 2-byte instruction, which is invalid.
2025-02-06 21:20:24 +09:00
Sour
f45aaa39f3 UI: Cheats - Prevent re-importing existing cheats when importing from cheat DB 2025-02-05 17:48:37 +09:00
Sour
f9b5897dbc UI: Fixed recent game grid not letting the first game be started via keyboard/gamepad input without moving to another element and then back first 2025-02-05 17:41:55 +09:00
Sour
a574032c8f Debugger: Fixed crash when trying to use the "Edit selected code" on a block start/end header 2025-02-05 17:36:24 +09:00
Sour
797ef1f57a PCE: Improved timing for SATB/VRAM DMA
Fixes freeze in TV Sports Football's "New Season" screen and is very close to new test rom's timings/results
2025-02-01 19:43:59 +09:00
Sour
4ce300877d PCE: Fixed memory mappings for save ram
Save ram is not mirrored across the entire 8kb, can only be accessed in the first 2kb
This fixes Death Bringer corrupting save ram when trying to start a new game
2025-02-01 18:01:15 +09:00
Sour
f102b94e38 Debugger: Improved SDCC integration by loading additional symbols from .sym files 2025-01-30 17:56:16 +09:00
Sour
081c3bca7a GBA: Fixed save type detection issues
Some games contained the string "FLASH_" but it wasn't actually the "FLASH_Vxxx" marker for the 64kb flash chips
2025-01-24 21:56:52 +09:00
Sour
f15f90d06c SNES: SPC7110 - Fixed incorrect memory mappings after loading save states
Also fixes a bug in the decompression init code that could cause the emulator to crash when an invalid decompression mode was read from rom
2025-01-22 17:41:42 +09:00
Sour
d3e70be65b Debugger: Fixed some invalid PRG addresses/mappings in DBG file imports (because of the .nes header and CHR data) 2025-01-21 18:36:43 +09:00
Sour
43ff951e83 Debugger: Fixed crash in GetMemoryValues
When start is not 0 and end is beyond the max size, memset would write out of bounds.
Caused by the previous tile viewer fix
2025-01-21 18:35:49 +09:00
Sour
30ece8ec62 Debugger: Fixed broken tile viewer output with some size combinations
If the number of rows and columns did not result in an amount of bytes that was a power of 2, the viewer would incorrectly repeat some tiles, etc.
This was broken by performance fixes done a few months ago
2025-01-20 17:56:51 +09:00
Sour
4052eccbc8 Debugger: Allow opening scripts from the command line while the emulator is already running, but skip scripts that are already opened in the emulator 2025-01-20 17:03:23 +09:00
Sour
6f68db5c4b GB: Improved behavior when changing SCX in the middle of a scanline
Improves the results for the m3_scx_high_5_bits and m3_scx_low_3_bits tests, and fixes the effect in one of the scenes in the "Mental respirator" demo
2025-01-20 13:11:54 +09:00
Sour
fd2c3fa46e GBC: Initialize palette RAM based on power on ram option
The "Vila Caldan Color" homebrew demo (?) doesn't initialize the OBJ palette and would likely get non-deterministic OBJ colors on hardware
2025-01-20 13:04:41 +09:00
Sour
be66075519 GB: Fixed freeze during Batman - The Video Game's title screen animation 2025-01-20 12:59:27 +09:00
Sour
bc2383ab16 SNES: Removed old debug information 2025-01-05 11:08:12 +09:00
Sour
b3fd15963b UI: Try to better recover from unexpected errors while opening the main window 2025-01-05 11:04:32 +09:00