Changeset 1891


Ignore:
Timestamp:
06/02/12 21:16:07 (12 months ago)
Author:
reyalp
Message:

sx200is - update from ADamb in http://chdk.setepontos.com/index.php?topic=650.msg86004#msg86004 + stubs_entry.S update with full dump

Location:
trunk/platform/sx200is
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/sx200is/lib.c

    r1886 r1891  
    6767{ 
    6868    extern int active_palette_buffer; 
    69     extern char* palette_buffer[]; 
    70     return (palette_buffer[active_palette_buffer]+0xC); 
     69    extern int** palette_buffer_ptr; 
     70    return (palette_buffer_ptr[active_palette_buffer]+0x3); 
    7171} 
     72 
    7273// Function to load CHDK custom colors into active Canon palette 
    7374void load_chdk_palette() 
  • trunk/platform/sx200is/sub/100c/stubs_entry.S

    r1855 r1891  
    55//   DRYOS R31 (DRYOS version 2.3, release #0031) 
    66//   Firmware Ver GM1.00C 
    7 //   Possible corrupt firmware dump - file size to small for start address 0xff810000 
    8 //     file size = 4.00MB, should be 7.94MB 
    9 //   Could not find Camera name - possible corrupt firmware dump 
     7//   Canon PowerShot SX200 IS 
    108 
    119// Values for makefile.inc 
    1210//   PLATFORMOSVER = 31 
     11//   PLATFORMID = 12736 (0x31c0) // Found @ 0xfffe0130 
    1312//   MAXRAMADDR = 0x03ffffff 
     13//   KEYSYS = d4                 // Found @ 0xffff356c 
     14//   NEED_ENCODED_DISKBOOT = 2   // Found @ 0xffff357c 
    1415 
    1516// Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S' 
     
    3435DEF(zoom_status                             ,0x0000b850) // Found @0xffa775d0 
    3536DEF(some_flag_for_af_scan                   ,0x00006af8) // Found @0xff93b340 
     37// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). 
     38// each entry contains 3 int value(s), the first is the zoom focus length. 
     39// there are 126 entries in the table - set NUM_FL to 126 
     40DEF(focus_len_table                         ,0xfffe8538) // Found @0xfffe8538 
    3641DEF(zoom_busy                               ,0x000064f0) // Found @0xff9342b4 
    3742DEF(focus_busy                              ,0x000063f8) // Found @0xff92e97c 
  • trunk/platform/sx200is/sub/100c/stubs_min.S

    r1887 r1891  
    44DEF(enabled_refresh_physical_screen,    0x8e04 + 0x30)  //found at FF9D4918 and FF9D4F38 
    55DEF(led_table,                          0x24AC + 0x04)  // found at FF847374 
    6 DEF(palette_buffer,                 0x15B5A0) // ref by 0x8D9C, sub_FF9CFC10 
     6DEF(palette_buffer_ptr,               0x8D9C) // points to 0x15B5A0, sub_FF9CFC10 
    77DEF(active_palette_buffer,            0x8D8C) // sub_FF9CFE34 
    88DEF(palette_control,                  0x8D88) // sub_FF9CFE34 
Note: See TracChangeset for help on using the changeset viewer.