Commit graph

308 commits

Author SHA1 Message Date
Sour
9e2ef3c2a1 GB: Improved noise channel initial timer after being triggered
Fixes SameSuite's channel_4_delay, channel_4_equivalent_frequencies, channel_4_frequency_alignment tests
2023-03-11 01:14:17 -05:00
Sour
0881814157 GB: Length counter hitting 0 on square channel should also update output
Fixes channel_1_stop_div, channel_2_stop_div
2023-03-10 22:37:11 -05:00
Sour
ff4561f1aa GB: Wave channel output should update when length counter hits 0
Fixes channel_3_stop_div test
2023-03-10 21:25:06 -05:00
Sour
8fef338355 GB: Wave channel output updates immediately when stopped via NR30
Fixes channel_3_stop_delay test
2023-03-10 21:13:57 -05:00
Sour
52220c8a1e GB: Wave channel output should update when writing to NR32
Fixes channel_3_shift_delay test
2023-03-10 21:06:14 -05:00
Sour
5ff7d29ffe GB: Added CGB speed change delay
Matches speed_switch_timing_stat (but not speed_switch_timing_ly) - probably not quite accurate but better than no delay at all
2023-03-10 20:32:09 -05:00
Sour
a69f38d661 GB: Display clearer error message when cart type is not supported 2023-03-10 18:11:10 -05:00
Sour
a9081985b5 GB: Reset DIV when CPU speed is toggled on CGB
Fixes speed_switch_timing_div test
2023-03-10 18:10:30 -05:00
Sour
965a2088e0 GB: Stop clocking channels when disabled (fixes square_1_volume_div)
+ Align square/noise channels to 1mhz clock (which allows the channel_1_align, etc. tests to work even if the channels aren't clocked while disabled)
2023-03-10 01:04:51 -05:00
Sour
af2cdb86ca GB: Noise envelope period should be 8 when period is set to 0 2023-03-10 00:24:49 -05:00
Sour
52f8a4a5f7 GB: Fixed typo/bug in square envelope clock code
Fixes channel_2_volume_div
2023-03-10 00:23:56 -05:00
Sour
8ba69a77ec GB: Noise - Update channel output when envelope is clocked
Fixes channel_4_volume_div
2023-03-10 00:19:08 -05:00
Sour
b954db45b7 GB: APU improvements (passes div_* tests) 2023-03-09 22:10:20 -05:00
Sour
629dfca2fc GB: Apply similar tweaks to noise/wave channels
Passes more of SameSuite's tests
2023-03-08 21:56:27 -05:00
Sour
7419abdaa5 GB: Fixed inverted wave/noise channel outputs in CGB register 2023-03-08 20:32:36 -05:00
Sour
a13b07b49c GB: Square channel improvements
Fixes some of the SameSuite square tests (unsure if the code is correct or not)
2023-03-08 20:25:53 -05:00
Sour
1abc479e0f GB: Fixed CGB sprite priority 2023-03-07 00:46:25 -05:00
Sour
35bcc56e7d GB: APU - Improved CGB behavior, fixes blargg's CGB tests 2023-02-27 23:08:15 -05:00
Sour
55f05abac7 GB: APU - Implemented wave ram corruption bug 2023-02-27 22:11:18 -05:00
Sour
1fbcba999e GB: Improve square channel sweep behavior
Fixes based on alyosha's work on GBHawk
Passes "sweep details" test
2023-02-27 20:46:35 -05:00
Sour
b147bc67d3 GB: Implemented OAM corruption bug 2023-02-26 23:47:27 -05:00
Snowy
4e647013de
GB: Fixed OAM DMA reading one extra byte (#11) 2023-02-26 23:07:20 -05:00
Sour
94a9956c54 GB: Improved OAM DMA behavior when starting a new dma while the previous one is still running
Fixes oam_dma_start test
2023-02-26 00:42:32 -05:00
Sour
cbd90e5309 GB: Fixed OAM DMA behavior when reading from >= $FE00
Fixes sources-GS test
2023-02-25 23:50:50 -05:00
Sour
176451ffbb GB: Improved DMA conflict handling, passes "bully" test 2023-02-25 22:35:13 -05:00
Sour
040cfbb24d GB: Fixed crash when APU frame sequencer isn't clocked for a very long time
Run APU at least once per frame - fixes crash in div_write test
2023-02-25 17:11:48 -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
d255cf3db0 Fixed compilation warnings 2023-02-15 00:12:45 -05:00
Sour
59944daeec GB: Disable joypad/serial IRQs for GBS files 2023-02-12 12:47:14 -05:00
Sour
66aa76bbfa GB: Disable "GBC LCD color emulation" when running in DMG mode 2023-02-11 13:43:52 -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
1b2d28dd62 GB: Fixed CGB GBS files incorrectly toggling high speed mode on and off when switching to another track 2023-02-10 01:00:18 -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
423769e579 GBC: Fixed colors when loading some GB games (e.g DK)
This was a bug in the boot rom that was fixed several years ago in SameBoy's code (but this was still using the bugged version)
2023-02-04 16:46:30 -05:00
Sour
70404866e1 Linux: Fixed compilation warnings 2023-02-01 19:42:53 -05:00
Sour
f6105bbd0e Debugger: Tilemap viewer - Added "attribute data" field 2023-02-01 00:51:17 -05:00
Sour
b4618eb47a GB: Allow loading GB/GBC/SGB save states on any of the 3 models 2023-01-30 19:50:05 -05:00
Sour
23b43eb984 GB: Refactoring, removed ConsoleType::GameboyColor 2023-01-29 23:05:29 -05:00
Sour
fc171c50e1 Debugger: GB - Fixed CPU crashes caused by dummy cpu 2023-01-28 20:44:38 -05:00
Sour
78ebd36c13 SGB: Fixed GB LCD being stuck in "first frame" mode permanently 2023-01-28 18:30:01 -05:00
Eldred Habert
097e2d40c7
Fix build errors with GCC (#2)
* Delete libevdev as well with `make clean`
* Fix explicit specialization is non-namespace scope
* Fix declaration of CgbFlag changing its meaning
* Fix declaration of NesHeader changing its meaning
2023-01-28 17:59:08 -05:00
Sour
6a0eef7e05 GB: Sweep - Improved behavior (e.g when shift value is set to 0, etc.)
Fixes "04-sweep" test
2023-01-28 11:44:28 -05:00
Sour
4782aade65 GB: Implemented wave channel ram read/write constraints while channel is enabled
Fixes "09-wave read while on" and "12-wave write while on" APU tests
2023-01-28 10:20:35 -05:00
Sour
174e31cd5a Debugger: Fixed pause/break freezes/issues when CPU is halted 2023-01-27 16:14:58 -05:00
Sour
d765f3f37c SGB: Trigger joypad interrupt when SGB updates the GB's input 2023-01-26 19:14:51 -05:00
Sour
d449f0c641 Debugger: Added cpuType parameter for Lua events 2023-01-24 22:14:24 -05: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
49d3aebba1 Disable breakpoints/debugger while rewinding 2022-10-15 13:12:33 -04:00