source: branches/juciphox/platform/ixus40_sd300/sub/100k/stubs_entry_2.S @ 493

Revision 493, 4.0 KB checked in by phyrephox, 5 years ago (diff)

+ added adresses for ev compensation stuff to a lot more cameras, thx to fudgey - http://chdk.setepontos.com/index.php/topic,2051.msg20516.html#msg20516 (probably needs verification)

  • merged ewavrs latest patch from trunk (regarding sx100 multipartion)
  • fixed a bug in script.c - now param z should be shown in the param list (see http://chdk.setepontos.com/index.php/topic,1865.msg20624.html#msg20624) - thx 2 fudgey
  • enabled file reader "wrap by words" as default in the cgf
  • set the readme as "last read file" in the filereader
  • updated german lng file (thx to msl & gehtnix)

+ added ubasic command: get_video_button - returns 1 if dedicated video record button is present (like on s-series or tx-1). One more step on the road of universal scripts.

next up: gonna committ more this weekend.

also: greetings to my mom.

Line 
1#include "stubs_asm.h"
2NHSTUB(GetBatteryTemperature, 0xFFA48900)  //ok
3NHSTUB(GetCCDTemperature, 0xFFA488EC) //ok
4NHSTUB(GetOpticalTemperature, 0xFFA488D8) //ok but returns -10deg all the time
5
6NHSTUB(GetDrive_ClusterSize, 0xFF8707EC) //OK
7NHSTUB(GetDrive_TotalClusters, 0xFF87082C) //OK
8NHSTUB(GetDrive_FreeClusters, 0xFF87086C) //OK
9
10NHSTUB(iosInit, 0xFFAC3B64) //should be ok
11NHSTUB(iosDevFind, 0xFFAC3A60) //should be ok
12NSTUB(GetFocusLensSubjectDistanceFromLens, 0xFFA600D8) //should be ok
13NHSTUB(SetZoomActuatorSpeedPercent, 0xFF811A38) //just a "RET" from any random address. should work
14NHSTUB(MoveFocusLensToDistance, 0xFFA6B0EC) //should be ok
15NHSTUB(GetZoomLensCurrentPoint, 0xFFA57CCC) //should be ok
16NHSTUB(GetZoomLensCurrentPosition, 0xFFA57CE0) //should be ok
17NHSTUB(SetAutoShutdownTime, 0xFF95608C) //should be ok
18
19NHSTUB(GetFocusLensSubjectDistance, 0xFFA5FA64) //ok, getting values that make sense :)
20NHSTUB(GetCurrentAvValue, 0xFFA6AEB4) //getting values, should be ok
21
22
23NHSTUB(Open,  0xFF87167C) //OK
24NHSTUB(Read,  0xFF8716E8) //OK
25NHSTUB(Write, 0xFF8716F4) //OK
26NHSTUB(Close, 0xFF871688) //OK
27NHSTUB(Remove, 0xFF871694) //SHOULD BE OK
28
29NHSTUB(Mount_FileSystem, 0xFF8702E4) //ok
30NHSTUB(VbattGet, 0xFFA5BCC4) //should be ok
31
32/**********************************************************/
33//as sd300 doesnt seem to have uniqueled stuff we do it our own way
34//see ixus40_sd300(lib.c for details
35//we need the af set/get methods:
36NHSTUB(SetAFBeamBrightness, 0xFFA62C34)
37NHSTUB(SetAFBeamOff, 0xFFA62CB0);
38//and uniqueled is set to NULL dummy
39NHSTUB(UniqueLedOn, 0xFFAAAED0)
40NHSTUB(UniqueLedOff, 0xFFAAAED0)
41/**********************************************************/
42
43//looks like there is no strobechargecompletet flag ?!
44//do it in my own way. found some code to get the eventflag
45//at 0xFF941A14. copied the call there in my own c-code
46//looking at sd400 asm showed that flash info is (val>>20)&1
47//seems correct here as well... see ixus40.../lib.c
48NHSTUB(IsStrobeChargeCompleted, IsStrobeChargeCompleted_my)
49NHSTUB(sub_FF821D04, 0xFF821D04)
50
51//test to use this for kbd action
52NHSTUB(semBCreate, 0xFFACF180)
53NHSTUB(GiveSemaphore, 0xFF823144)
54         
55//should be ok but sd300 doesnt have all cases :(
56//NHSTUB(GetPropertyCase, 0xFF82CB54)
57NHSTUB(GetPropertyCase, GetPropertyCase_my)
58NHSTUB(GetPropertyCase_orig, 0xFF82CB54)
59NHSTUB(SetPropertyCase, SetPropertyCase_my)
60NHSTUB(SetPropertyCase_orig, 0xFF82CAD0)
61
62
63//adresses are ok but sd300 pdata differs, | 0x4000 lets it return 0 all the time,
64//without it you get crashes at some data addr :(
65//NHSTUB(GetParameterData, 0xFF95A55C) //should be ok!
66NHSTUB(GetParameterData, GetParameterData_my) //hack to work around file number issue
67NHSTUB(GetParameterData_orig, 0xFF95A55C) //should be ok!
68NHSTUB(SetParameterData, 0xFF95A49C)
69
70//custom stuff
71NHSTUB(ShowCameraLog, 0xFF81A1A8) //ok
72NHSTUB(ShowAllTaskInfo, 0xFFA9E8E4)
73NHSTUB(SetTimerWhen, 0xFF815828) //ok
74
75//ovveride autodetect for LockMainPower
76NHSTUB(LockMainPower, 0xff95619C) //OK!
77NHSTUB(UnlockMainPower, 0xff956258) //OK!
78//NHSTUB(LockMainPower, dummy_nop)
79//NHSTUB(UnlockMainPower, dummy_nop)
80//Manually entered
81NHSTUB(AllocateMemory, 0xFF81F56C)
82NHSTUB(FreeMemory, 0xFF81F578)
83NHSTUB(ExecuteEventProcedure, 0xFF81756C) //checked
84
85NHSTUB(CreatePhysicalVram, 0xFF927B0C)
86NHSTUB(DisplayImagePhysicalScreen, 0xFF927098)
87NHSTUB(FreeUncacheableMemory, 0xFF8152BC)
88
89NHSTUB(GetCurrentMachineTime, 0xFF81FEFC)
90NHSTUB(free, 0xFFAC5900)
91
92//Keyboard stuff - Check it, not very similar to SD500
93NHSTUB(kbd_p1_f_cont, 0xFF830AB4)
94NHSTUB(PhySw_testgpio, 0xFF82FA8C)
95
96
97
98//null stub
99
100NHSTUB(kbd_p1_f, 0xFFAAAED0)
101NHSTUB(kbd_p2_f, 0xFFAAAED0)
102NHSTUB(kbd_read_keys_r2, 0xFFAAAED0)
103
104//from sd400
105
106//sd300 doesnt seem to have this feature !
107NHSTUB(UnsetZoomForMovie, 0xFFAAAED0) //00xFF9A4D1C)
108
109NHSTUB(PT_PlaySound, 0xFF94EB3C)
110
111
112NHSTUB(EnterToCompensationEVF, 0xff93e1e0)
113NHSTUB(ExitFromCompensationEVF, 0xff93e220)
114
Note: See TracBrowser for help on using the repository browser.