Decompile and set CFLAGS for SRAM library #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sram"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -107,3 +107,3 @@COMMON_DATA void (*read_sram_fast)(const u8 *src, u8 *dest, u32 size) = NULL;COMMON_DATA void (*write_int_sram_fast)(const u8 *src, u8 *dest, u32 size) = NULL;COMMON_DATA void (*verify_sram_fast)(const u8 *src, u8 *dest, u32 size) = NULL;COMMON_DATA const u8* (*verify_sram_fast)(const u8 *src, u8 *dest, u32 size) = NULL;@ -24,3 +24,2 @@// (https://decomp.me/scratch/qFu1X)#include "asm/lib_sram/asm_0804c96c.s"void write_sram_fast(const u8 *src, u8 *dest, u32 size) { // r4, r6, r5Remove the comment
@ -25,2 +25,2 @@// (https://decomp.me/scratch/qFu1X)#include "asm/lib_sram/asm_0804c96c.s"void write_sram_fast(const u8 *src, u8 *dest, u32 size) { // r4, r6, r5u32 words; // r7Same as above
@ -30,0 +50,4 @@}}const u8* verify_sram_fast_rom(const u8 *src, u8 *dest, u32 size) {@ -30,0 +54,4 @@REG_WAITCNT = (REG_WAITCNT & 0xfffc) | 3;size -= 1;for (;size != -1; size--) {@ -30,0 +56,4 @@size -= 1;for (;size != -1; size--) {if (*dest++ != *src++) {return dest-1;@ -30,0 +102,4 @@REG_WAITCNT = (REG_WAITCNT & ~3) | 3;}const u8* write_and_verify_sram_fast(const u8 *src, u8 *dest, u32 size) {@ -30,0 +104,4 @@const u8* write_and_verify_sram_fast(const u8 *src, u8 *dest, u32 size) {u8 attempts = 0;const u8* verify_result;@ -14,1 +12,3 @@extern void (*verify_sram_fast)(const u8 *src, u8 *dest, u32 size); // Pointer to verify_sram_fast_codeextern void (*read_sram_fast)(const u8 *src, u8 *dest, u32 size); // Pointer to read_sram_fast_codeextern void (*write_int_sram_fast)(const u8 *src, u8 *dest, u32 size); // Pointer to write_int_sram_fast_codeextern const u8* (*verify_sram_fast)(const u8 *src, u8 *dest, u32 size); // Pointer to verify_sram_fast_code@ -18,1 +16,3 @@extern u32 verify_sram_fast_rom(const u8 *src, u8 *dest, u32 size); // Verify SRAM (Fast)extern void read_sram_fast_rom(const u8 *src, u8 *dest, u32 size); // Read SRAM (Fast)extern void write_sram_fast(const u8 *src, u8 *dest, u32 size); // Write SRAM (Fast)extern const u8* verify_sram_fast_rom(const u8 *src, u8 *dest, u32 size); // Verify SRAM (Fast)Same as above
@ -19,2 +18,3 @@extern const u8* verify_sram_fast_rom(const u8 *src, u8 *dest, u32 size); // Verify SRAM (Fast)extern void set_sram_fast_func(void); // Set SRAM (Fast) Functionsextern u32 write_and_verify_sram_fast(const u8 *src, u8 *dest, u32 size); // Write and Verify SRAM (Fast)extern const u8* write_and_verify_sram_fast(const u8 *src, u8 *dest, u32 size); // Write and Verify SRAM (Fast)Same as above
Additionally, replace all the
3s that appear inREG_WAITCNTaccesses withWAITCNT_SRAM_8:#define WAITCNT_SRAM_8 (3 << 0)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.