reyalp
If I search for the values you posted, I find them at FF898F28. This suggests you have "extra stuff" in your dump.
Ahhhhh ..... I did not expect this - trying to make sense of something that doesn't (skewed addresses) isn't fun.
It seems that there are 3
SX20 1.00f dumps out there, but I didn't use the correct one:
a) first link in the wiki pointing to
http://neszt.hu/sx20_GM1.00F_v02.dump.zip:
It has lots of 1234567890 in the beginning, and dumping it shows the init_file_modules_task code at address:
ff89d0dc: e92d4070 push {r4, r5, r6, lr}
ff89d0e0: ebffd4a1 bl ff89236c <_binary_H__chdk_dissasemble_sx20_100f_dump_bin_start+0x8236c>
ff89d0e4: e59f5198 ldr r5, [pc, #408] ; ff89d284: (00005006)
ff89d0e8: e1b04000 movs r4, r0
b) there's one .7z file here too:
http://chdk.neszt.hu/bin/sx20_100f.7z (apparently newer than the first dump) which is the one that I used.
This one has the code above at address:
ff89c2c4: e92d4070 push {r4, r5, r6, lr}
ff89c2c8: ebffd4a1 bl ff891554 <_binary_H__chdk_dissasemble_sx20_100f_dump_bin_start+0x81554>
ff89c2cc: e59f5198 ldr r5, [pc, #408] ; ff89c46c: (00005006)
ff89c2d0: e1b04000 movs r4, r0
c) there's a third image it seems, here:
http://drop.io/chdkdumps2
This one has the same name as the .7z file at point b), but the PRIMARY.BIN file inside is different.
The addresses here are correct:
ff89a8cc: e92d4070 push {r4, r5, r6, lr}
ff89a8d0: ebffd4a1 bl ff88fb5c <_binary_H__chdk_dissasemble_sx20_100f_dump_bin_start+0x7fb5c>
ff89a8d4: e59f5198 ldr r5, [pc, #408] ; ff89aa74: (00005006)
ff89a8d8: e1b04000 movs r4, r0
.
I will keep this last one 🙁 I'm a sad with all the mess.
Maybe somebody will propagate the last image to the first two addresses also .. of update the wiki ?
But anyway, I'm glad that the mystery was solved. Thanks reyalp.. I need few days of resting now.
PS: The address I found by monitoring taskCreateHook at runtime was correct!
https://chdk.setepontos.com/d/4348/397
In firmware at point c) indeed, the jog dial task starts at ff85f3cc:
ff85f3cc: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
ff85f3d0: e24dd024 sub sp, sp, #36 ; 0x24
ff85f3d4: e28d0004 add r0, sp, #4 ; 0x4