source: trunk/platform/g12/sub/100e/stubs_entry_2.S @ 1145

Revision 1145, 6.7 KB checked in by reyalP, 2 years ago (diff)

g12 and sx30 updates from philmoz in http://chdk.setepontos.com/index.php?topic=650.msg64631#msg64631

  • Added code to override the -0.5 DNG exposure bias that is set in the dng.c code. If your DNG files are 1/2 stop underexposed this is why. Exposure bias set to 0 for G12 & SX30.
  • Changed logical screen width to 360 (from 320).
  • Cleanup old code in capt_seq.c & added some comments to boot.c
  • Aligned vid_bitmap_refresh logic on both cameras. It's still not perfect; but I get less problems with menus vanishing with this version.
  • Property svn:eol-style set to native
Line 
1#include "stubs_asm.h"
2
3# Confirmed
4NHSTUB(qsort,                                                   0xFFB5FBDC)     // ok (comp 1.00c)
5NHSTUB(strtol,                                                  0xFF840954)     // ok (comp 1.00c)
6NHSTUB(EnterToCompensationEVF,                  0xFF838D24)     // ok (comp 1.00c)
7NHSTUB(ExitFromCompensationEVF,                 0xFF838D68)     // ok (comp 1.00c)
8NHSTUB(GetBatteryTemperature,                   0xff868f80)     // ok (comp 1.00c)
9NHSTUB(GetCCDTemperature,                               0xff868f0c)     // ok (comp 1.00c)
10NHSTUB(GetCurrentAvValue,                               0xff97fcb8)     // ok (comp 1.00c)
11NHSTUB(GetParameterData,                                0xFF9BECF0)     // ok (comp 1.00c)
12NHSTUB(GetZoomLensCurrentPoint,                 0xFF9819E0)     // ok (comp 1.00c)
13NHSTUB(GetZoomLensCurrentPosition,              0xFFAF6880)     // ok (comp 1.00c)
14NHSTUB(PT_PlaySound,                                    0xFF88A140)     // ok (comp 1.00c)
15NHSTUB(ReadFastDir,                                             0xFFAE2C20)     // ok (comp 1.00c)
16NHSTUB(readfastdir,                                             0xFFAE2C20) // alias for ReadFastDir
17NHSTUB(Remove,                                                  0xFF837114)     // ok (comp 1.00c)
18NHSTUB(SetParameterData,                                0xFF9BEBC8)     // ok (comp 1.00c)
19NHSTUB(TurnOffBackLight,                                0xFF8ABD94)     // ok (comp 1.00c)
20NHSTUB(TurnOnBackLight,                                 0xFF8ABD7C)     // ok (comp 1.00c)
21NHSTUB(Lseek,                                                   0xFF8371FC)     // ok (comp 1.00c)
22NHSTUB(free,                                                    0xFF814244)     // ok (comp 1.00c)
23NHSTUB(ExitTask,                                                0xff81eb30)     // ok (comp 1.00c)
24NHSTUB(FreeUncacheableMemory,                   0xff83af70)     // ok (comp 1.00c)
25NHSTUB(GetDrive_ClusterSize,                    0xff876948)     // ok (comp 1.00c)
26NHSTUB(GetDrive_TotalClusters,                  0xff87697c)     // ok (comp 1.00c)
27NHSTUB(GetDrive_FreeClusters,                   0xFF8769A8)     // ok (comp 1.00c)
28NHSTUB(GetFocusLensSubjectDistance,             0xff97e348)     // ok (comp 1.00c)
29NHSTUB(GetFocusLensSubjectDistanceFromLens, 0xff97e794) // ok (comp 1.00c)
30NHSTUB(GetOpticalTemperature,                   0xff868ff4)     // ok (comp 1.00c)
31NHSTUB(GetPropertyCase,                                 0xff8954f0)     // ok (comp 1.00c)
32NHSTUB(GetSystemTime,                                   0xFFB08EE8)     // ok (comp 1.00c)
33NHSTUB(IsStrobeChargeCompleted,                 0xff8ea5f0)     // ok (comp 1.00c)
34NHSTUB(LockMainPower,                                   0xff89c204)     // ok (comp 1.00c)
35NHSTUB(MakeDirectory_Fut,                               0xff836acc)     // ok (comp 1.00c)
36NHSTUB(MoveFocusLensToDistance,                 0xFFB72148)     // ok (comp 1.00c)
37NHSTUB(MoveZoomLensWithPoint,                   0xFFB051B8)     // ok (comp 1.00c)
38NHSTUB(NewTaskShell,                                    0xff894f0c)     // ok (comp 1.00c)
39NHSTUB(Close,                                                   0xFF8370E0)     // ok (eventproc_export_Close)
40NHSTUB(Open,                                                    0xFF837074)     // wrapper for 'open' to give buffered/asynch I/O ?
41NHSTUB(open,                                                    0xFF81AADC)     //
42NHSTUB(PostLogicalEventForNotPowerType, 0xff899b70)     // ok (comp 1.00c)
43NHSTUB(PostLogicalEventToUI,                    0xff899bbc)     // ok (comp 1.00c)
44NHSTUB(RenameFile_Fut,                                  0xFF8369C4)     // ok (comp 1.00c)
45NHSTUB(rename,                                                  0xFF8369C4) // same as RenameFile_Fut
46NHSTUB(SetAutoShutdownTime,                             0xff89c278)     // ok (comp 1.00c)
47NHSTUB(SetCurrentCaptureModeType,               0xff8a4d44)     // ok (comp 1.00c)
48NHSTUB(SetFileTimeStamp,                                0xFF83737C)     // ok (comp 1.00c)
49NHSTUB(SetLogicalEventActive,                   0xff89bf40)     // ok (comp 1.00c)
50NHSTUB(SetPropertyCase,                                 0xff8953c8)     // ok (comp 1.00c)
51NHSTUB(SleepTask,                                               0xff83abb4)     // ok (comp 1.00c)
52NHSTUB(TakeSemaphore,                                   0xff83a87c)     // ok (comp 1.00c)
53NHSTUB(UnlockMainPower,                                 0xff89c158)     // ok (comp 1.00c)
54NHSTUB(VbattGet,                                                0xff833180)     // ok (comp 1.00c)
55NHSTUB(closedir,                                                0xFFAE2A7C)     // ok (comp 1.00c)
56NHSTUB(closefastdir,                                    0xFFAE2A7C) // same as closedir
57NHSTUB(kbd_p1_f,                                                0xff834a6c)     // ok (comp 1.00c)
58NHSTUB(kbd_p1_f_cont,                                   0xff834a78)     // ok (comp 1.00c)
59NHSTUB(kbd_read_keys,                                   0xFF8349F4)     // ok (comp 1.00c)
60NHSTUB(kbd_p2_f,                                                0xff8342bc)     // ok (comp 1.00c)
61NHSTUB(kbd_read_keys_r2,                                0xFF864D8C)     // ok (comp 1.00c)
62NHSTUB(lseek,                                                   0xFF8371FC) // same as Lseek
63NHSTUB(mkdir,                                                   0xff83757c)     // ok (comp 1.00c)
64NHSTUB(opendir,                                                 0xFFAE2ACC)     // ok (comp 1.00c)
65NHSTUB(openfastdir,                                             0xFFAE2ACC) // same as opendir
66NHSTUB(reboot_fw_update,                                0xFFAE8040)     // ok (comp 1.00c)
67NHSTUB(strcat,                                                  0xFF8B5328)     // ok (comp 1.00c)
68NHSTUB(strchr,                                                  0xff8140b4)     // ok (comp 1.00c)
69NHSTUB(strlen,                                                  0xFF814100)     // ok (comp 1.00c)
70NHSTUB(strncpy,                                                 0xff81402c)     // ok (comp 1.00c)
71NHSTUB(strrchr,                                                 0xFF8140D8)     // ok (comp 1.00c)
72NHSTUB(time,                                                    0xff88f66c)     // ok (comp 1.00c)
73NHSTUB(MakeAFScan,                                              0xFF98AA10)     // ok (comp 1.00c)
74NHSTUB(ExpCtrlTool_StopContiAE,                 0xFF8475EC)     // ok ?
75NHSTUB(ExpCtrlTool_StartContiAE,                0xFF847454)     // ok ?
76NHSTUB(UnsetZoomForMovie,                               0xFF9C57DC)     // ok (comp 1.00c)
77NHSTUB(LEDDrive,                                                0xFF8647EC)     // ok (comp 1.00c)
78NHSTUB(SetScriptMode,                                   0xFF89BF90)     // ok (comp 1.00c)
79//NHSTUB(UnlockAndRefresh,                              0xFF8B3A68)     // ok (comp 1.00c)
80NHSTUB(RefreshPhysicalScreen,                   0xFF8B3A68) // alias for UnlockAndRefresh
81//NHSTUB(LockAndRefresh,                                    0xFF8B50E4) // ok (comp 1.00c)
82NHSTUB(ScreenLock,                                              0xFF8B4C98)     // ok (comp 1.00c)
83NHSTUB(ScreenUnlock,                                    0xFF8B4CFC)     // ok (comp 1.00c)
84NHSTUB(apex2us,                                                 0xFFA5C248)     // ok (comp 1.00c)
85NHSTUB(WriteSDCard,                                             0xFF96E820)     // ok (comp 1.00c)
86NHSTUB(GetKbdState,                                             0xFF865678)     // ok (comp 1.00c)
87NHSTUB(UnlockAF,                                                0xFF838978)     // ok (comp 1.00c)
88NHSTUB(DoAFLock,                                                0xFF838940)     // ok (comp 1.00c)
89NHSTUB(GetImageFolder,                                  0xFF95F2FC)     // function before 'GetCameraObjectTmpPath ERROR' string
90NHSTUB(UpdateMBROnFlash,                                0xFF8767C8) // Search for 'BOOTDISK', function branches to this at end (after setting up R0,R1,R2)
91NHSTUB(exmem_alloc,                                             0xFF88FFD8)     // search for ExMem.AllocCacheable (from reyalp)
92NHSTUB(PutInNdFilter,                   0xFFB0501C)
93NHSTUB(PutOutNdFilter,                  0xFFB05040)
94NHSTUB(PT_MoveDigitalZoomToWide,                0xFF87F5C0)
95NHSTUB(rand,                                                    0xFFA5B370)     // search for 0x41C64E6D. Function before this value is rand.
96NHSTUB(srand,                                                   0xFFA5B364)     // search for 0x41C64E6D. Function before rand is srand.
97
98# From stubs_entry_ida.s
99NHSTUB(eventproc_export_PostLogicalEventToUI, 0xff899bbc)
100NHSTUB(eventproc_export_SleepTask, 0xff83abb4)
101NHSTUB(eventproc_export_ExitTask, 0xff81eb30)
102NHSTUB(eventproc_export_TakeSemaphore, 0xff83a87c)
103NHSTUB(eventproc_export_HardwareDefect, 0xff89c4a8)
104
105# Misc
106NHSTUB(DebugAssert,                                             0xFF81EB78)     // ok (comp 1.00c)
107NHSTUB(PT_GetPropertyCaseString,                        0xFF8954F0)     // ok (comp 1.00c)
108NHSTUB(takeSemaphore,                                           0xFF83AD5C)     // ok (comp 1.00c)
109NHSTUB(err_init_task,                                           0xFF815FD4)     // ok (comp 1.00c)
110
111# Addresses for firmware task handlers (used in taskHook)
112DEF(task_CaptSeq,                                               0xFF88261C)     // ok (comp 1.00c)
113DEF(task_InitFileModules,                               0xFF89FC7C)     // ok (comp 1.00c)
114DEF(task_RotaryEncoder,                                 0xFF8657EC)     // ok (comp 1.00c)
115DEF(task_MovieRecord,                                   0xFF987094)     // ok (comp 1.00c)
116DEF(task_ExpDrv,                                                0xFF8CC0D0)     // ok (comp 1.00c)
117
118# Missing
119NHSTUB(kbd_pwr_off,                                             0xFF810B1C)                                                             // ??? not on sx20 or s95
120NHSTUB(kbd_pwr_on,                                              0xFF810B1C)                                                             // ??? not on sx20 or s95
121NHSTUB(UIFS_WriteFirmInfoToFile,                0xFF810B1C)     // Is this needed?
122NHSTUB(rewinddir,                                               0xFF810B1C)
123NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B1C)
124NHSTUB(Unmount_FileSystem,                              0xFF810B1C)
125NHSTUB(Mount_FileSystem,                                0xFF810B1C)
Note: See TracBrowser for help on using the repository browser.