6 Commits

Author SHA1 Message Date
Gabriel Marcano
2c3870dbad Memory management cleaning, dump options
-newlib handles allocations, in the default case, by starting to
allocate memory right after the end of the program in memory, and will
continue to allocate memory as requested until it hits the stack. As a
result, it is safe to use memory allocation function to get memory for
usage. Changed some of the memory management in the application to use
memalign (memory needs to be aligned to at least 16 bits if sdmmc.c is
to work, preferably 32 bits).
-Added an option for the user to either dump the full ROM, or just the
partitions.
2016-06-07 02:49:50 -04:00
Gabriel Marcano
913bc867b7 No longer saves more than the ROM size, cleanup
Using some header information from rom_tool, it was possible to
implement something that will accurately determine the real ROM size.
With that information, uncart no longer dumps in 2GB chunks, but to the
actual size of ROM (all 8 partitions).

Warnings were cleaned up as much as possible for now (2 remain). i2c
support was added in order to be able to shut down uncart when it is
over (it isn't clear that the ASM in start.s is right for returning
control to brahma, if that's even possible). More warnings were enabled
in the Makefile, and lto was enabled.

Currently, the Makefile and the draw.h are configured for a9lh support.
2016-06-07 02:32:45 -04:00
Yuri Kunde Schlesner
121c93ba11 Correct typos in cache initialization code 2015-05-14 04:23:24 -03:00
archshift
c06625f422 Enable MCU, caches for massive speedups in game dump time. 2015-05-13 21:09:17 -07:00
archshift
4ca99178d3 Code style cleanups, removing dead code 2015-05-10 01:22:47 -07:00
Tony Wasserka
c4959d20a5 Initial commit 2015-05-04 15:32:23 -07:00