| 1 | #include "stubs_asm.h" |
|---|
| 2 | #include "stubs_entry_ida.S" |
|---|
| 3 | |
|---|
| 4 | # Confirmed with data from IDA |
|---|
| 5 | NHSTUB(Lseek, 0xff835398) |
|---|
| 6 | NHSTUB(ExitTask, 0xff81e844) |
|---|
| 7 | NHSTUB(LockMainPower, 0xFF896EFC) |
|---|
| 8 | NHSTUB(PostLogicalEventForNotPowerType, 0xFF894DF8) |
|---|
| 9 | NHSTUB(PostLogicalEventToUI, 0xFF894E44) |
|---|
| 10 | NHSTUB(SetAutoShutdownTime, 0xFF896F70) |
|---|
| 11 | NHSTUB(SetCurrentCaptureModeType, 0xFF89EB78) |
|---|
| 12 | NHSTUB(SleepTask, 0xff838a6c) |
|---|
| 13 | NHSTUB(TakeSemaphore, 0xff838734) |
|---|
| 14 | NHSTUB(UnlockMainPower, 0xFF896E50) |
|---|
| 15 | |
|---|
| 16 | # FROM IDA (Auto) |
|---|
| 17 | NHSTUB(VbattGet, 0xFF95D27C) |
|---|
| 18 | NHSTUB(GetSystemTime, 0xFFA9B880) |
|---|
| 19 | NHSTUB(GetOpticalTemperature, 0xff8627b8) |
|---|
| 20 | NHSTUB(SetLogicalEventActive, 0xFF896C4C) |
|---|
| 21 | NHSTUB(NewTaskShell, 0xFF88EDF0) |
|---|
| 22 | NHSTUB(SetPropertyCase, 0xFF88F230) // function PT_GetPropertyCaseString?? |
|---|
| 23 | NHSTUB(TurnOnBackLight, 0xFF8A5B18) |
|---|
| 24 | NHSTUB(kbd_p1_f, 0xff833498) |
|---|
| 25 | NHSTUB(time, 0xFF889484) |
|---|
| 26 | |
|---|
| 27 | # Other |
|---|
| 28 | NHSTUB(TurnOffBackLight, 0xFF89B6F4) |
|---|
| 29 | NHSTUB(PT_PlaySound, 0xFF8840A8) // pretty sure |
|---|
| 30 | NHSTUB(RefreshPhysicalScreen, 0xFFA04AD8) |
|---|
| 31 | NHSTUB(strcat, 0xFF8AC8CC) |
|---|
| 32 | NHSTUB(UpdateMBRonFlash, 0xFF86F048) // looked for all function with strncpy that matched sx10 102b |
|---|
| 33 | NHSTUB(UnlockAndRefresh, 0xFFA04B48) |
|---|
| 34 | NHSTUB(LockAndRefresh, 0xFFA04AA4) |
|---|
| 35 | NHSTUB(LEDDrive, 0xFF85E338) // looks good |
|---|
| 36 | NHSTUB(SetScriptMode, 0xFF896C9C) // looks good |
|---|
| 37 | NHSTUB(apex2us, 0xFFA08264) // looks good |
|---|
| 38 | NHSTUB(WriteSDCard, 0xFF940C34) // I think this is it |
|---|
| 39 | NHSTUB(EnterToCompensationEVF, 0xFF836D84) |
|---|
| 40 | NHSTUB(platformsub_kbd_fetch_data, 0xFF85F11C) // yep |
|---|
| 41 | NHSTUB(ExitFromCompensationEVF, 0xFF836DC8) |
|---|
| 42 | NHSTUB(GetBatteryTemperature, 0xFF862744) // pretty sure |
|---|
| 43 | NHSTUB(GetCCDTemperature, 0xFF8626D0) // pretty sure |
|---|
| 44 | NHSTUB(GetZoomLensCurrentPosition, 0xFFA8ED0C) // seem good |
|---|
| 45 | NHSTUB(GetZoomLensCurrentPoint, 0xFF956864) // looks good |
|---|
| 46 | NHSTUB(Remove, 0xFF8352B0) |
|---|
| 47 | NHSTUB(RenameFile_Fut, 0xFF834B74) // doesn't look like SX10 but works |
|---|
| 48 | NHSTUB(strrchr, 0xFF813FE4) // incorrectly detected |
|---|
| 49 | NHSTUB(add_ptp_handler, 0xFFA49320) |
|---|
| 50 | |
|---|
| 51 | # Might be wrong |
|---|
| 52 | NHSTUB(UnlockAF, 0xFF879714) // ? could be right |
|---|
| 53 | NHSTUB(DoAFLock, 0xFF879704) // ? could be right |
|---|
| 54 | |
|---|
| 55 | #NULL |
|---|
| 56 | NHSTUB(rewinddir, 0xFF810B04) // BX LR |
|---|
| 57 | NHSTUB(SetZoomActuatorSpeedPercent, 0xFF810B04) // BX LR |
|---|
| 58 | NHSTUB(Unmount_FileSystem, 0xFF810B04) // BX LR |
|---|
| 59 | NHSTUB(Mount_FileSystem, 0xFF810B04) // BX LR |
|---|
| 60 | NHSTUB(kbd_pwr_off, 0xFF810B04) // BX LR |
|---|
| 61 | NHSTUB(kbd_pwr_on, 0xFF810B04) // BX LR |
|---|
| 62 | NHSTUB(SetFileTimeStamp, 0xFF810B04) // # incorrect auto detect why can no one find this function! |
|---|
| 63 | |
|---|
| 64 | #0xDEADC0DE |
|---|
| 65 | NHSTUB(UIFS_WriteFirmInfoToFile, 0xDEADC0DE) // NA #1 |
|---|
| 66 | NHSTUB(openfastdir, 0xDEADC0DE) // NA #1 |
|---|
| 67 | NHSTUB(readfastdir, 0xDEADC0DE) // NA #1 |
|---|
| 68 | NHSTUB(rename, 0xDEADC0DE) |
|---|
| 69 | |
|---|
| 70 | # Stubs requires for JogDial code |
|---|
| 71 | STUB(FF896BD4) |
|---|
| 72 | STUB(FF896B04) |
|---|
| 73 | STUB(FFA04AA4) |
|---|