212 Commits

Author SHA1 Message Date
Konrad Beckmann
c6014e0bd9 retro-go: Update submodule (gb, nes fixes) and fixup 2021-01-11 12:10:05 +01:00
Konrad Beckmann
0d9d7605e7 nes: Update submodule and adjust integration 2021-01-11 11:22:26 +01:00
Franz Levin
bc61c642b1 battery: Added battery status 2021-01-11 02:30:22 +01:00
Franz Levin
58573dc296 cubemx: Generated new code 2021-01-11 02:30:22 +01:00
Konrad Beckmann
62ceaefa87 Include gui in internal flash
This makes it possible to program only the internal flash without any roms loaded and get a menu that loads without crashing.
2021-01-09 23:14:51 +01:00
Konrad Beckmann
3b50f7a1cd Generate emulator configuration based on roms
Closes #57
2021-01-09 06:35:26 +01:00
Konrad Beckmann
4fc8552bf2 launcher: Show options with the pause/set button
Makes it more consistent with the in-game settings that uses the same button.
2021-01-08 23:41:24 +01:00
Jan Dumon
b656959c4d Integrate smsplusgx 2021-01-08 16:27:21 +01:00
Konrad Beckmann
d3bdb98781 Persist and show log after watchdog reset 2021-01-08 16:04:20 +01:00
Konrad Beckmann
9359d8b374 bsod: Encode fault in boot magic 2021-01-08 15:38:55 +01:00
Konrad Beckmann
c34d0e2cb8 Set boot_magic when watchdog expires 2021-01-08 15:32:41 +01:00
Jan Dumon
00e5d9a25c Added a watchdog to avoid power-cycles when things go wrong 2021-01-08 14:28:48 +01:00
Konrad Beckmann
edef752123 Don't copy strings, reduces heap usage 2021-01-06 02:32:17 +01:00
Jan Dumon
47dc364af2 flash: align erase size with the address
Sub-block erases should be aligned with the size: e.g. 32kB erase should
only be done on 32kB boundaries, 64Kb erase should only be done on block
boundaries.
2021-01-05 15:44:14 +01:00
Jan Dumon
0b553b87da Load emulators from flash into memory
This was originally written by Thomas Roth <code@stacksmashing.net> to
make it possible to support more emulators than what fits into memory at
the same time (commit c13aa09b).

Instead of generating a monolithic binary, the different emulators are
stored in flash and loaded into ram right before they are launched.

This is the basis for adding more emulators e.g. smsplusgx.
2021-01-04 17:20:48 +01:00
Raúl Mora
5ef7292aa5 GUI updated similar to the Famicom Classic Mini title selection screen 2021-01-04 14:02:45 +01:00
Konrad Beckmann
52c6150519 Increase emulator_framebuffer to correct size 2021-01-04 08:19:51 +01:00
Konrad Beckmann
5bf02cb429 Relocate emulator_framebuffer to .emulator_data 2021-01-04 08:19:02 +01:00
Konrad Beckmann
58470a91b9 Only disable caching on fb ram 2021-01-04 06:35:25 +01:00
Konrad Beckmann
f91e20153b Add unaligned mempcy fix 2021-01-02 21:28:28 +01:00
Konrad Beckmann
db504ed905 main/flash: Use SPI_MODE
This will make the project work for everyone for now.
This should be revisited later.
2021-01-02 04:22:46 +01:00
Konrad Beckmann
2c3c566437 Support 4K, 32K and 64K flash erase 2020-12-29 17:02:43 +01:00
Konrad Beckmann
98954634b1 Fix warnings 2020-12-29 14:04:11 +01:00
Konrad Beckmann
29451a18c1 gb: Support GBC 2020-12-29 03:41:26 +01:00
Konrad Beckmann
c1efeecc23 Correctly specify the audio buffer size to handle 50/60 Hz 2020-12-29 03:05:15 +01:00
Konrad Beckmann
d34667cae4 gb: Store actual number of bytes of state save 2020-12-29 00:12:22 +01:00
Konrad Beckmann
59b841ac7a Include region in rom parsing 2020-12-28 21:59:47 +01:00
Konrad Beckmann
1d930d84a0 Default to 60 Hz 2020-12-28 21:58:08 +01:00
Konrad Beckmann
e4add4a4a4 nes: Support PAL and NTSC 2020-12-28 21:21:06 +01:00
Franz Levin
76b248e2a3 use dynamic array size 2020-12-28 15:38:15 +01:00
Franz Levin
84e74f5b1c cleanup 2020-12-28 01:44:42 +01:00
Konrad Beckmann
ec2fe6b548 Fix dependency issues for githash.h 2020-12-28 00:56:31 +01:00
Konrad Beckmann
aff237dddc Remove incorrect include 2020-12-28 00:10:16 +01:00
Jan Dumon
000bffde95 gb: use screen_blit_v3to5 2020-12-27 22:09:29 +01:00
Konrad Beckmann
bd02b964fe Fix some additional warnings 2020-12-27 22:01:33 +01:00
Jan Dumon
e618b0d8ef fixed compiler warnings 2020-12-27 19:54:48 +01:00
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