Commit graph

158 commits

Author SHA1 Message Date
Sour
acbe931ba0 Debugger: SNES - Added break on options for SPC
Break on BRK, STOP/SLEEP
2025-03-27 23:46:36 +09:00
Sour
0dbe874fa4 Debugger: Sprite Viewer - SNES - Fixed crash when EnableOamPriority flag was set
startIndex could be set to 128+, depending on the oam address, which caused memory corruption
2025-03-21 23:31:07 +09:00
Sour
f359b80eb5 Debugger: Assembler - Allow using #label syntax on NES/SNES/PCE
This used to be allowed in Mesen-S
2025-03-13 18:32:46 +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
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
8d6830a70a SNES: Add support for ST018 coprocessor
Used by a single game: Hayazashi Nidan Morita Shougi 2
2024-12-29 23:41:52 +09:00
Sour
8ad34343ba Debugger: Prevent UI freeze when viewer updates pile up and end up taking up 100% of the UI thread's time
Prevent queueing another update while the previous update is still running, which should prevent most issues.
Also slightly improves performance for the SNES tilemap viewer (which was causing the freeze when displaying an 8bpp 1024x1024 tilemap)
2024-12-10 18:59:13 +09:00
Sour
614e61a2d1 Debugger: Fixed issues with step over/out in some scenarios (bank swapping, recursive functions, etc.)
Only break when both the stack pointer and the return address match what the debugger was expecting, instead of just the return address
2024-12-07 17:46:28 +09:00
Sour
3873078053 Debugger: SNES - Fixed crash when resetting console with debugger active 2024-11-07 18:46:20 +09:00
Sour
d751502a58 NES: Added Rainbow support (mapper 682) 2024-10-08 21:37:44 +09:00
Sour
e79e655d3b Debugger: Event Viewer - Added missing address/value for some event types (marked breakpoints, etc.) 2024-09-12 17:11:56 +09:00
Sour
14123a1884 Debugger: Sprite Viewer - Added option to dim offscreen sprites in the left-hand grid
+ Added "Visible" column to sprite list
+ Fixed some layout issues in > 100% dpi modes
2024-07-14 14:33:10 +09:00
Sour
074034aa66 Debugger: Use cpu-specific cycle counts for profiler data
Fixed SNES co-processors (including the SPC) reporting their profiling data based on SNES master clocks, which wasn't accurate/reliable
2024-06-23 16:21:49 +09:00
Sour
d9f1d486a3 Debugger: SNES - Fixed palette display for mode 0 layers in tilemap viewer 2024-04-27 12:14:45 +09:00
Sour
13acb3fe42 Added GBA support 2024-03-30 11:42:31 +09:00
Sour
aa9c459630 Debugger: Step Back - Allow stepping back 1 scanline/frame at a time + remove restriction that caused step back to only work for up to 30 frames 2024-01-26 23:39:31 +09:00
Sour
5308983ebb Added SMS/GG/SG-1000 support 2023-12-14 22:23:27 +09:00
Sour
3c94fe6245 Debugger: SNES - Fixed effective address display for indirect JMP
Effective address always had the upper 8 bits of the address as 0 instead of using the current value of K
2023-11-29 17:56:25 +09:00
Sour
13be4e8d99 Debugger: SNES - Fixed crash in GSU debugger when negative jump target wraps past 0 2023-11-16 17:11:15 +09:00
Sour
9751fbdf06 Debugger: SNES - Fixed jump address in disassembly for DBNZ Y,[...] 2023-11-14 21:05:10 +09:00
Sour
eb17aab85d Debugger: Sprite viewer - Added option to change background color 2023-09-26 18:58:50 +09:00
Yuri Kunde Schlesner
9538c90698
Debugger: SNES - Treat BRL as an unconditional jump (#29) 2023-08-18 11:51:43 +09:00
Sour
2822ca5dd0 SNES: Implement broken vertical mirroring for rectangular sprites (same as hardware) 2023-07-23 13:38:15 +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
4580c667a8 Debugger: Lua - Fixed memory callbacks for GB and snes coprocessors 2023-06-19 21:06:08 +09:00
Quinton Miller
a4d3d30755
Debugger: Lua - Fixed memory callbacks for SPC 2023-06-19 20:36:15 +09:00
KungFuFurby
8a08187d6c
Debugger: SPC - Add TCALL and PCALL opcodes to list of subroutine opcodes in SPC debugger (#20) 2023-05-12 21:26:20 -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
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
7090fcdb71 Debugger: Warn when "save rom as" fails 2023-04-11 22:33:02 -04:00
Sour
28b03d8434 Debugger: SNES - Fixed RMW instructions not displaying the correct address/value in 16-bit mode 2023-04-04 17:46:57 -04:00
Sour
7ca3ae781e Debugger: SPC - Invalidate instruction cache on writes even when option to ignore read/writes is turned on 2023-01-29 18:59:46 -05:00
Sour
ef1023ed1f SNES: SPC - Fixed issues with STOP/SLEEP instructions
-Fixed execution not stopping right after stop/sleep until the spc finished catching up to the main cpu
-Force dummy spc to running state when used to get effective addreses, etc.
2023-01-29 18:59:46 -05:00
Sour
174e31cd5a Debugger: Fixed pause/break freezes/issues when CPU is halted 2023-01-27 16:14:58 -05:00
Sour
2e2d6b8db3 Debugger: SNES - Fixed crash when opening the debugger on some SA-1 games
Crashed whenever the SA-1 processed an interrupt
2023-01-26 17:27:48 -05:00
Sour
1cfaaaae98 Debugger: Fixed NEC DSP TODOs 2023-01-24 19:45:08 -05:00
Sour
fe90b4571d Fixed misc code TODOs 2023-01-24 18:05:50 -05:00
Sour
e6b4d23f70 Rename TODOs that need to be fixed/checked before release to TODOv2 2023-01-05 14:07:08 +09:00
Sour
9751895751 Debugger: Allow saving/loading save states without forcing the emulator to run until the next vertical blank 2022-12-27 16:29:16 +09:00
Sour
5d92c8caba Debugger: Fixed inconsistencies in event viewer when stepping to the first cycle of a frame 2022-12-22 16:22:00 +09:00
Sour
0ff5a8220a GSU: Fixed swapped OP names in code/disassembly (BGE/BLT) 2022-10-26 18:00:39 -04:00
Sour
49d3aebba1 Disable breakpoints/debugger while rewinding 2022-10-15 13:12:33 -04:00
Sour
5327cafd1b Debugger: SNES - Fixed incorrect effective addresses for some read operations 2022-10-08 12:21:59 -04:00
Sour
89085c53f4 Fixed build warnings 2022-10-06 01:10:54 -04:00
Sour
ccc59e4bea Debugger: GSU - Fixed BCV -> BVC typo 2022-10-01 19:56:32 -04:00
Sour
b2567fd88f Debugger: Event Viewer - Show PC at the start of the instruction instead of the current PC 2022-09-28 19:49:49 -04:00
Sour
3fe77d271a Debugger: Added "memaddress" token in expressions 2022-09-28 18:20:45 -04:00
Sour
ba151fbc12 Debugger: Trace logger - added help tooltip for custom format 2022-09-19 19:36:54 -04:00
Sour
5bd346b533 Debugger: Trace logger - Fixed CX4 not being logged at all 2022-09-19 17:10:05 -04:00