ewavr perhaps you can post a diff of the things you tried so maybe others know where to have a look and maybe find out for themselves?
I wrote about this
here.
So, in file loader/sx100is/resetcode/main.c line 94 can be commented-out:
"LDR R0, =0x12345678\n"
"MOV R1, #0x40000000\n"
// "STR R0, [R1,#0xFFC]\n" <-------------
Look also to G7 loader: loader/g7/resetcode/main.c:
"MOV R3, #0xFF0\n"
"LDR R1, =0x12345678\n"
"ADD R3, R3, #0x4000000C\n"
"LDR R2, =0xC0220204\n" // power
"LDR R2, [R2]\n" // button
"AND R2, #0x10000\n" // is
"CMP R2, #0\n" // pressed?
"STREQ R1, [R3]\n" // if not, store value