source: trunk/platform/sx20/sub/102d/stubs_entry_2.S @ 931

Revision 931, 2.8 KB checked in by fe50, 3 years ago (diff)
  • Optimazions & fixes by ultimA, from http://chdk.setepontos.com/index.php/topic,650.msg54493.html#msg54493 :
    • Optimizations to edge overlay
    • Make edge overlay more "multitask-friendly"
    • Detect a full shutter press during edge calculations too
    • Wrap pano-modes in edge menu & change icons (by msl)
    • Backport fixes from #928 SX20 1.02d to 1.02b
    • Add experimental PTP support to SX20 1.02d (based on mweerden's PTP proposal 20/07/2010)
    • Center edge overlay horizontally
    • Make the overlay's horizontal area larger (+6 pixels)
  • The SX20 1.02b is now enabled (in the main makefile) for the autobuild server
Line 
1#include "stubs_asm.h"
2#include "stubs_entry_ida.S"
3
4# Confirmed with data from IDA
5NHSTUB(Lseek,                                                   0xff835398)
6NHSTUB(ExitTask,                                                0xff81e844)
7NHSTUB(LockMainPower,                                   0xFF896EFC)
8NHSTUB(PostLogicalEventForNotPowerType, 0xFF894DF8)
9NHSTUB(PostLogicalEventToUI,                    0xFF894E44)
10NHSTUB(SetAutoShutdownTime,                             0xFF896F70)
11NHSTUB(SetCurrentCaptureModeType,               0xFF89EB78)
12NHSTUB(SleepTask,                                               0xff838a6c)
13NHSTUB(TakeSemaphore,                                   0xff838734)
14NHSTUB(UnlockMainPower,                                 0xFF896E50)
15
16# FROM IDA (Auto)
17NHSTUB(VbattGet,                                                0xFF95D27C)
18NHSTUB(GetSystemTime,                                   0xFFA9B880)
19NHSTUB(GetOpticalTemperature,                   0xff8627b8)
20NHSTUB(SetLogicalEventActive,                   0xFF896C4C)
21NHSTUB(NewTaskShell,                                    0xFF88EDF0)
22NHSTUB(SetPropertyCase,                                 0xFF88F230)     // function PT_GetPropertyCaseString??
23NHSTUB(TurnOnBackLight,                                 0xFF8A5B18)
24NHSTUB(kbd_p1_f,                                                0xff833498)
25NHSTUB(time,                                                    0xFF889484)
26
27# Other
28NHSTUB(TurnOffBackLight,                                0xFF89B6F4)
29NHSTUB(PT_PlaySound,                                    0xFF8840A8) // pretty sure
30NHSTUB(RefreshPhysicalScreen,                   0xFFA04AD8)
31NHSTUB(strcat,                                                  0xFF8AC8CC)
32NHSTUB(UpdateMBRonFlash,                                0xFF86F048) // looked for all function with strncpy that matched sx10 102b
33NHSTUB(UnlockAndRefresh,                0xFFA04B48)
34NHSTUB(LockAndRefresh,                              0xFFA04AA4)
35NHSTUB(LEDDrive,                                                0xFF85E338) // looks good
36NHSTUB(SetScriptMode,                                   0xFF896C9C) // looks good
37NHSTUB(apex2us,                                                 0xFFA08264) // looks good
38NHSTUB(WriteSDCard,                                             0xFF940C34) // I think this is it
39NHSTUB(EnterToCompensationEVF,                  0xFF836D84)
40NHSTUB(platformsub_kbd_fetch_data,              0xFF85F11C) // yep
41NHSTUB(ExitFromCompensationEVF,                 0xFF836DC8)
42NHSTUB(GetBatteryTemperature,                   0xFF862744) // pretty sure
43NHSTUB(GetCCDTemperature,                               0xFF8626D0) // pretty sure
44NHSTUB(GetZoomLensCurrentPosition,              0xFFA8ED0C) // seem good
45NHSTUB(GetZoomLensCurrentPoint,                 0xFF956864) // looks good
46NHSTUB(Remove,                                                  0xFF8352B0)
47NHSTUB(RenameFile_Fut,                                  0xFF834B74) // doesn't look like SX10 but works
48NHSTUB(strrchr,                                                 0xFF813FE4) // incorrectly detected
49NHSTUB(add_ptp_handler,                                 0xFFA49320)
50
51# Might be wrong
52NHSTUB(UnlockAF,                                                0xFF879714) // ? could be right
53NHSTUB(DoAFLock,                                                0xFF879704) // ? could be right
54
55#NULL
56NHSTUB(rewinddir,                                               0xFF810B04) // BX LR
57NHSTUB(SetZoomActuatorSpeedPercent,             0xFF810B04) // BX LR
58NHSTUB(Unmount_FileSystem,                              0xFF810B04) // BX LR
59NHSTUB(Mount_FileSystem,                                0xFF810B04) // BX LR
60NHSTUB(kbd_pwr_off,                                             0xFF810B04) // BX LR
61NHSTUB(kbd_pwr_on,                                              0xFF810B04) // BX LR
62NHSTUB(SetFileTimeStamp,                                0xFF810B04) // # incorrect auto detect why can no one find this function!
63
64#0xDEADC0DE
65NHSTUB(UIFS_WriteFirmInfoToFile,                0xDEADC0DE) // NA #1
66NHSTUB(openfastdir,                                             0xDEADC0DE) // NA #1
67NHSTUB(readfastdir,                                             0xDEADC0DE) // NA #1
68NHSTUB(rename,                                                  0xDEADC0DE)
69
70# Stubs requires for JogDial code
71STUB(FF896BD4)
72STUB(FF896B04)
73STUB(FFA04AA4)
Note: See TracBrowser for help on using the repository browser.