17 Commits
Author SHA1 Message Date
SourMesen 918379b7a7 Debugger: Tilemap viewer - Added option to pick background color (#238)
Also, minor bug fixes for WS:
-Fixed tilemap viewer for sometimes using the wrong background color
-Fixed the 4-bit RGB color values in the palette viewer having the R and B values swapped
2026-07-28 19:55:12 +09:00
Adrian "asie" Siekierka 5bb64aacf0 WS: Initial Pocket Challenge V2 support (#95)
The Pocket Challenge V2 is an education handheld based on the ASWAN SoC, as used in the WonderSwan. It uses the same boot ROM (with an early exit), but has some implementation changes:

    The LCD icon segment area is not present (on the display panel only).
    There is no onboard internal EEPROM.
    The input keypad layout differs.
    The headphone output is always used with a custom onboard DAC, as opposed to relying on the SoC's own PWM DAC for the internal speaker.

This PR implements support for all of this. Support for the PCv2-exclusive cartridge mapper (KARNAK) will be added by a separate PR.
2026-05-17 01:11:02 +09:00
SourMesen e391fd8f9a Code: Add auto-formatting rules for C++ (clang-format) and enforce in CI via "clang-format" and "dotnet format" (#78)
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format"

* fix ui format warnings
2026-04-30 06:03:55 -07:00
SourMesen 4b8669d34b Debugger: Tilemap viewer - Fixed "edit tile" behavior on SNES when the tilemap is using 16x16 (or 16x8) tiles (#72)
Also, added support for horizontal/vertical mirroring when editing the mirrored tiles from the tilemap.
2026-04-27 09:18:53 -07:00
SourMesen 8e4dd329ac Debugger: Lua - Added new APIs: getCpuState, setCpuState, getMasterClock, getCpuCycleCount (#58)
getCpuState/setCpuState allow the same functionality as getState/setState, but limited to only the CPU's state, making them much faster (some performance optimizations to the serialization & Lua code were also done)
getMasterClock/getCpuCycleCount are very fast alternatives to getState when all the script needs is a cycle count.
2026-04-26 18:00:08 -07:00
Sour ed7d8ca6a3 WS: Fixed zero flag after unsigned multiplication on monochrome model 2025-07-13 20:58:30 +09:00
Sour 5f6c362a93 WS: EEPROM - Add delay when processing read/write/erase commands 2025-07-13 20:58:09 +09:00
Sour 28881c0fcd WS: Fixed behavior for undocumented CALL/JMP FAR variants
Fixes the new undefined opcode tests in WSCpuTest
2025-06-25 21:33:17 +09:00
Sour eddf540e30 Debugger: WS - Fixed DS segment prefix not being disassembled properly 2025-06-25 21:31:37 +09:00
Sour e4bf1660b1 Debugger: WS - Display negative branch offsets as negative hex numbers in disassembly 2025-04-24 21:06:33 +09:00
Sour 2d0845058b Debugger: WS - Fixed value display for instructions that load 2x 16-bit values (e.g LES) 2025-04-24 21:05:14 +09:00
Sour 601898aa87 WS: PPU - Color 0 doesn't exist in palettes 4-7, 12-15 2025-04-09 18:10:44 +09:00
Sour 36bd1611c6 Debugger: Catch up APU for all consoles when breaking, to allow register viewer/etc. to display up-to-date values 2025-04-03 22:41:27 +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 2e6a2e5494 Debugger: WS - Fixed effective address calculation for LES/LDS
Show first word's address instead of the second's
2024-11-13 21:27:48 +09:00
Sour d751502a58 NES: Added Rainbow support (mapper 682) 2024-10-08 21:37:44 +09:00
Sour c5406773a0 Added WonderSwan support 2024-09-19 21:19:43 +09:00