root/platform/sx730hs/sub/100d/stubs_entry_2.S

/* [<][>][^][v][top][bottom][index][help] */
   1 #include "stubs_asm.h"
   2 // BEWARE: thumb functions NEED the thumb bit in the below list
   3 
   4 #define NULL_SUB        0xfc0200ad      // bx lr
   5 #define RET1            0xfc021f4d      // mov r0, #1 ; bx lr
   6 #define RET0            0xfc0211ed      // mov r0, #0 ; bx lr
   7 
   8 NHSTUB(Feof_Fut,                                                                0xfc34c989) // Ghidra exact mne v sx710
   9 NHSTUB(Fflush_Fut,                                                              0xfc34c9b1) // "
  10 NHSTUB(SetFileTimeStamp,                                                0xfc3517db) // "
  11 NHSTUB(SetFileAttributes,                                               0xfc351823) // after SetFileTimeStamp in ROM
  12 NHSTUB(RenameFile_Fut,                                                  0xfc34c739) // Ghidra exact
  13 NHSTUB(MakeSDCardBootable,                                              0xfc3529fd) // Ghidra implied, "BOOTDISK" string
  14 NHSTUB(GetFocusLensSubjectDistanceFromLens,             0xfc3344e3) // Ghidra implied, fc131dbe like sx710 fc141b0c
  15 
  16 NHSTUB(GetImageFolder,                                                  0xfc32f40f) // based on ref to fc3344e2 (ref "%s/%3d%s"), exact match sx710 fc31152e
  17 
  18 NHSTUB(LogCameraEvent,                                                  0xfc32c407) // debugging, from func csv
  19 
  20 NHSTUB(GetDrive_TotalClusters,                                  0xfc352637) // function immediately before GetDrive_FreeClusters in ROM
  21 NHSTUB(CancelHPTimer,                                                   0xfc3b35b9) // fc368cf4 ref to UITimer, similar to sx710 fc301a54
  22 
  23 // required because DryOS >=54 functions assert on unitialized event flag, sem etc
  24 // see https://chdk.setepontos.com/index.php?topic=12516.0
  25 NHSTUB(init_focus_eventflag,                                    0xfc52e91b) // InitializeAdjustmentSystem->fc4415c8->fc52e91a event flag matches MoveFocusLensToDistance
  26 NHSTUB(CreateBinarySemaphoreStrictly,           0xfc34ba19) // from csv
  27 
  28 NHSTUB(_pow,                                                                    0x010f8718) // note ARM
  29 
  30 // via func fc18e1b0 hooked in preshoot case, similar to sx710
  31 NHSTUB(captseq_raw_addr_init,                                   0xfc0f5fd3)
  32 NHSTUB(apex2us,                                                                 0xfc21985b) // Ghidra exact
  33 
  34 NHSTUB(exmem_alloc,                                                             0xFC3B2E05)
  35 //NHSTUB(exmem_free,                                                    0xFC3B2E3D)
  36 NHSTUB(exmem_ualloc,                                                    0xFC3B2D79)
  37 NHSTUB(exmem_ufree,                                                             0xFC3B2DD5)
  38 
  39 // SX730 NOT found
  40 NHSTUB(TurnOnBackLight,                                                 NULL_SUB)
  41 NHSTUB(TurnOffBackLight,                                                NULL_SUB)
  42 
  43 // not implemented
  44 NHSTUB(EnterToCompensationEVF,NULL_SUB)
  45 NHSTUB(ExitFromCompensationEVF,NULL_SUB)
  46 NHSTUB(ExpCtrlTool_StartContiAE,NULL_SUB)
  47 NHSTUB(ExpCtrlTool_StopContiAE,NULL_SUB)
  48 NHSTUB(Restart,NULL_SUB)
  49 NHSTUB(SetParameterData,NULL_SUB)
  50 NHSTUB(WriteSDCard,NULL_SUB)
  51 NHSTUB(reboot_fw_update,NULL_SUB)
  52 
  53 // from sx280 These don't exist
  54 NHSTUB(SetZoomActuatorSpeedPercent, NULL_SUB)
  55 NHSTUB(UnsetZoomForMovie,           NULL_SUB)

/* [<][>][^][v][top][bottom][index][help] */