Hi,
while working on CHDK for SX110IS I've additionally found the addresses for
vid_get_viewport_live_fb() for SX100IS 1.00c.
I believe vid_get_viewport_live_fb in platform\sx100is\sub\100c\lib.c could
look like this:
void *vid_get_viewport_live_fb()
{
void **fb=(void **)0x21E4; //ROM:FFC2A4FC
unsigned char buff = *((unsigned char*)0x2098); //ROM:FFC2A4AC ,
ROM:FFC2A4C8
if (buff == 0) buff = 2; else buff--;
return fb[buff];
}
Regards!
Found here:
ROM:FFC2A4A8 sub_FFC2A4A8 ; DATA XREF:
ROM:off_FFC2AA48o
ROM:FFC2A4A8 STMFD SP!, {R4,LR}
ROM:FFC2A4AC LDR R4, =0x2098
ROM:FFC2A4B0 LDR R0, [R4,#0xC8]
ROM:FFC2A4B4 CMP R0, #1
ROM:FFC2A4B8 LDRNE R0, [R4,#0xDC]
ROM:FFC2A4BC LDMNEFD SP!, {R4,LR}
ROM:FFC2A4C0 MOVNE R1, #1
ROM:FFC2A4C4 BNE sub_FFC193D4
ROM:FFC2A4C8 LDR R1, =0x2098
ROM:FFC2A4CC LDR R0, [R4,#0x54]
ROM:FFC2A4D0 LDR R1, [R1,#0x20]
ROM:FFC2A4D4 CMP R0, #2
ROM:FFC2A4D8 BGE loc_FFC2A4F8
ROM:FFC2A4DC LDR R2, [R4,#0x58]
ROM:FFC2A4E0 MOV R0, #0
ROM:FFC2A4E4 BL sub_FFCA99EC
ROM:FFC2A4E8 LDR R0, [R4,#0x4C]
ROM:FFC2A4EC ADD R0, R0, #1
ROM:FFC2A4F0 STR R0, [R4,#0x4C]
ROM:FFC2A4F4 B loc_FFC2A50C
ROM:FFC2A4F8 ;
---------------------------------------------------------------------------
ROM:FFC2A4F8
ROM:FFC2A4F8 loc_FFC2A4F8 ; CODE XREF:
sub_FFC2A4A8+30j
ROM:FFC2A4F8 LDRB R2, [R4]
ROM:FFC2A4FC LDR R0, =0x21E4
ROM:FFC2A500 LDR R2, [R0,R2,LSL#2]
ROM:FFC2A504 MOV R0, #0
ROM:FFC2A508 BL sub_FFCA99EC
ROM:FFC2A50C
ROM:FFC2A50C loc_FFC2A50C ; CODE XREF:
sub_FFC2A4A8+4Cj
ROM:FFC2A50C LDMFD SP!, {R4,LR}
ROM:FFC2A510 MOV R1, #0
ROM:FFC2A514 MOV R0, #0
ROM:FFC2A518 B sub_FFCDE6EC