https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 22238632e9e49f207595ed03024791b4c5834beb authored by Bilal Fakhouri on 02 July 2018, 22:58:09 UTC
crop_rec.c Added new preset "mv1080 in EOS M" it's worked for patching mv1080 into mv720 in Canon 700D ,, and the two cameras shares the same values but it didn't work for EOS M the resolution stayed 1736x696 unlike in canon 700D 1736x1158 .
Tip revision: 2223863
footer.c
/* this magic is a BX R3 */
#define FOOTER_MAGIC 0xE12FFF13
#define STR(x) STRx(x)
#define STRx(x) #x

asm(
    /* footer is read by first instructions to check if autoexec.bin was loaded correctly 
       .data is selected after .text by the default linker script, so this will go to the
       end of the file, being a usable footer.
    */
    ".section .data\n"
    
    ".align 5, 0xCE\n"

    /* fill up so there are only two words left */
    ".word   0xCEEEEEEC\n"
    ".word   0xCEEEEEEC\n"
    ".word   0xCEEEEEEC\n"
    ".word   0xCEEEEEEC\n"
    ".word   0xCEEEEEEC\n"
    ".word   0xCEEEEEEC\n"
    
    ".globl autoexec_bin_footer\n"
    "autoexec_bin_footer:\n"
    ".word   "STR(FOOTER_MAGIC)"\n"
    "autoexec_bin_checksum:\n"
    ".word   0xCCCCCCCC\n"
    ".globl autoexec_bin_checksum_end\n"
    "autoexec_bin_checksum_end:\n"
);
back to top