389 Commits

Author SHA1 Message Date
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
Franz Levin
51d5f4cac1 cubemx: Added pins, adc, timer, interrupts for fuel gauge 2021-01-11 02:30:22 +01:00
Chris Hughes
c93991c59b osx: Fix for save state scripts 2021-01-11 01:32:47 +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
6698f89809 ci: Add placeholder roms for GG/SMS so it is built 2021-01-09 22:18:51 +01:00
Konrad Beckmann
efa8e37a8e linux: Add basic gb integration 2021-01-09 16:34:21 +01:00
Konrad Beckmann
72159e5b08 parse_roms: Write build/saveflash.ld if it's changed 2021-01-09 06:50:17 +01:00
Konrad Beckmann
6dfce45374 parse_roms: Write build/config.h if it's changed 2021-01-09 06:45:04 +01:00
Konrad Beckmann
3b50f7a1cd Generate emulator configuration based on roms
Closes #57
2021-01-09 06:35:26 +01:00
Konrad Beckmann
274399a4bd makefile: Remove unused targets 2021-01-09 06:10:56 +01:00
Konrad Beckmann
945f5d9de0 size: Include sms 2021-01-09 04:22:01 +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
Nikolay Antsiferov
7edd9ed819 Update readme with Sega Master System and Game Gear, fix markdown linting 2021-01-08 21:46:31 +01:00
Konrad Beckmann
a9ef026ed3 Support backup of sms/gg save states 2021-01-08 17:23:05 +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
Konrad Beckmann
019c22e6e6 Update submodule (reduce warnings) 2021-01-08 15:17:51 +01:00
Jan Dumon
00e5d9a25c Added a watchdog to avoid power-cycles when things go wrong 2021-01-08 14:28:48 +01:00
Nick Piper
d5ae205d3e Make the list of roms have stable order so that we don't unnecessarily recompile rom_manager.c etc.
I found that compiling on one system, then rsync to a pi for flashing, the pi wanted to recompile since the `build/rom_files.txt` order varied since `find` returned the filenames in a different order. Adding a `sort` makes the order the same between filesystems so the pi no longer attempts an unnecessary recompile.
2021-01-08 02:38:08 +01:00
Konrad Beckmann
d353abbbd5 docker: Add libncurses5 (used by gdb) 2021-01-07 14:04:46 +01:00
Konrad Beckmann
534c192e90 size.sh/ld: Print nes/gb ram usage correctly 2021-01-07 12:58:53 +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
Konrad Beckmann
7d15919899 Add scripts for backing up and restoring save states 2021-01-05 08:19:07 +01:00
Jan Dumon
1878e9d66e Move heap to DTCMRAM
It should be faster and it makes room for the smsplusgx emulator.
2021-01-05 00:32:11 +01:00
Konrad Beckmann
debeffe721 update submodule 2021-01-04 17:31:08 +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
Konrad Beckmann
1246574036 Revert "linux: Build with -O0"
This reverts commit ab682fbd9d.
2021-01-04 16:41:28 +01:00
Konrad Beckmann
20565d7cb1 linux: Don't generate unused file 2021-01-04 16:41:18 +01:00
Konrad Beckmann
afe58c548c linux: Build with -Og -ggdb3 2021-01-04 16:41:01 +01:00
Konrad Beckmann
ab682fbd9d linux: Build with -O0 2021-01-04 15:42:43 +01:00
Konrad Beckmann
68031940af linux: Mark roms as const, helps to find emulator bugs 2021-01-04 15:39:35 +01:00
Konrad Beckmann
9ce955b16d linux: Fix emulator_framebuffer size 2021-01-04 15:07:51 +01:00
Konrad Beckmann
5d2d1b6b96 Update submodule 2021-01-04 14:08:56 +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
Franz Levin
3e7e0d1361 makefile: update rom_manager.c 2021-01-04 14:01:28 +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
116f14bf93 Revert "nes: Fix overdraw bug" 2021-01-04 08:18:36 +01:00
Konrad Beckmann
7f7e73735c ld/size.sh: Fix ITCMRAM size 2021-01-04 08:18:10 +01:00
Konrad Beckmann
ec4535d5db Fix the Linux nes emulator 2021-01-04 08:05:39 +01:00
Konrad Beckmann
45ca2456ac Fix overdraw bug 2021-01-04 08:04:39 +01:00
Konrad Beckmann
0d36bf2f86 make: Improve old submodule warning 2021-01-04 07:55:00 +01:00
Konrad Beckmann
54e8978a1f ld: Use correct RAM_UC length everywhere 2021-01-04 06:59:09 +01:00
Konrad Beckmann
58470a91b9 Only disable caching on fb ram 2021-01-04 06:35:25 +01:00
Konrad Beckmann
9830937d10 Simplify handling of updated files. 2021-01-04 03:33:14 +01:00