176 Commits

Author SHA1 Message Date
Konrad Beckmann
2815b9a00a BSOD: Reboot device after a button is pressed 2020-12-27 16:34:36 +01:00
Konrad Beckmann
09148a16f6 Fix rendering bug, support changing palettes 2020-12-27 16:34:33 +01:00
Konrad Beckmann
83e169b307 Improved performance 2020-12-27 16:28:48 +01:00
Konrad Beckmann
c4aba07673 disable profiling 2020-12-27 16:28:44 +01:00
Konrad Beckmann
69c8bb9ad3 Fix padding 2020-12-27 16:28:41 +01:00
Konrad Beckmann
9c9a9d8c7f Fancy upscaling 2020-12-27 16:28:36 +01:00
Konrad Beckmann
c9904a37a3 Improve blit/scaling performance 2020-12-27 16:28:30 +01:00
Konrad Beckmann
05dc1d3211 Reset if going into standby fails 2020-12-27 16:24:54 +01:00
Konrad Beckmann
bb19910ece Disable profiling 2020-12-27 16:24:49 +01:00
Konrad Beckmann
26b9c90c39 Optimize blitting 2020-12-27 16:24:40 +01:00
Konrad Beckmann
250d9c8253 Support deleting of saves 2020-12-27 16:22:03 +01:00
Konrad Beckmann
c01f51ff57 Finalize state save/load for gb and nes 2020-12-27 16:21:59 +01:00
Konrad Beckmann
72ebd229e2 Add _t suffix and get rid of some warnings 2020-12-27 16:21:55 +01:00
Konrad Beckmann
10325ad55e Power button in main menu 2020-12-27 16:21:52 +01:00
Konrad Beckmann
0a93f7752f Control volume correctly 2020-12-27 16:21:48 +01:00
Konrad Beckmann
04b704a1d4 Improve menus 2020-12-27 16:21:44 +01:00
Konrad Beckmann
2cabf8a6d8 Clear audio buffer while OSD menu is showing 2020-12-27 16:21:40 +01:00
Konrad Beckmann
97058dd5ef nes: Enable OSD menu 2020-12-27 16:21:36 +01:00
Konrad Beckmann
0b5784d963 nes: Detect PAL/NTSC correctly 2020-12-27 16:21:32 +01:00
Konrad Beckmann
179ba9bc6b Fix loading of nes roms 2020-12-27 16:20:44 +01:00
Thomas Roth
003c1eeb62 Fix build issues 2020-12-27 16:20:38 +01:00
Thomas Roth
c05d489231 Remove unused rom_info.h dependency 2020-12-27 16:20:26 +01:00
Thomas Roth
8bb62c2af8 Working NES and GB switching 2020-12-27 16:20:14 +01:00
Thomas Roth
2b9430e946 Working NES and GB switching 2020-12-27 16:20:05 +01:00
Konrad Beckmann
cba0ad229a Hook in backlight/brightness control in settings 2020-12-27 16:20:01 +01:00
Konrad Beckmann
4b3ab433f5 Backlight support using DAC 2020-12-27 16:19:57 +01:00
Konrad Beckmann
b12048899e Generate and include git hash in BSOD 2020-12-27 16:19:50 +01:00
Konrad Beckmann
c539baff52 Add BSOD 2020-12-27 16:19:45 +01:00
Konrad Beckmann
1374269566 Lots of stuff, menu working better than before 2020-12-27 16:19:40 +01:00
Konrad Beckmann
fd69b060dc Remove hacks that are not needed anymore 2020-12-27 16:19:36 +01:00
Konrad Beckmann
b0a76c4526 memset gamepad state to 0 2020-12-27 16:19:31 +01:00
Konrad Beckmann
0cde4b2941 Fix heap usage 2020-12-27 16:19:26 +01:00
Konrad Beckmann
9f554e4e69 Add MPU protected redzone for the stack 2020-12-27 16:19:15 +01:00
Konrad Beckmann
c8b70b33d3 Implement _sbrk, allocate 16KB heap in RAM 2020-12-27 16:19:08 +01:00
Konrad Beckmann
b400da4967 Add rg_alloc tracker and enable it by default 2020-12-27 16:19:02 +01:00
Thomas Roth
da2df65684 Working GB ROM selection 2020-12-27 16:18:04 +01:00
Konrad Beckmann
d4854c7310 Add initial GUI hack 2020-12-27 16:17:27 +01:00
Konrad Beckmann
95252992b8 Fix nes NN blit function
Also add possibility to choose between 307 and 320
pixels wide upscaling.
2020-12-18 13:48:36 +01:00
Jan Dumon
fe182651b0 fixed pointer in call to OSPI_WriteBytes 2020-12-14 20:33:42 +01:00
Jan Dumon
2ba0693124 protect the nullpointer redzone with the MPU
An additional region is configured in the MPU to cause memory faults
when the processor tries to access the nullpointer redzone.
2020-12-14 11:36:09 +01:00
Konrad Beckmann
da93267953 Fix broken memcpy implementation
Related to #13
2020-12-12 13:43:30 +01:00
Konrad Beckmann
181ce5b894 Build with D_FORTIFY_SOURCE=1
This also adds a naive memcpy implementation to work around
bounds checks. This is done because of symbols coming from
the ld script that don't have the correct length.

If anyone knows how to fix this properly, PRs are always welcome!

This is an alternate solution to #13
2020-12-12 13:38:17 +01:00
Konrad Beckmann
224af81740 Add missing entry in gw_linker.h 2020-12-11 15:33:15 +01:00
Konrad Beckmann
89abc22b27 Nullpointer redzone 2020-12-11 13:22:06 +01:00
Konrad Beckmann
b7cc8814bb Sample initial button states 2020-12-11 02:24:49 +01:00
Konrad Beckmann
a31273498b nes: Support toggling ROM cache 2020-12-11 02:11:31 +01:00
Konrad Beckmann
02c0c4ec16 gb: Fix synchronization
This restores 60 solid FPS together with nice audio.
2020-12-09 20:06:12 +01:00
Konrad Beckmann
b4411f521a gb: Fix border in jth rendering 2020-12-09 19:21:47 +01:00
Thomas Roth
cc17a98f63 Increase volume 2020-12-09 19:16:12 +01:00
Thomas Roth
16d71d29a2 GB: Fix sound-glitches 2020-12-09 19:16:12 +01:00