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

/* [<][>][^][v][top][bottom][index][help] */
   1 #include "stubs_asm.h"
   2 // NOTE 100d was ported first, comments in that sub are more likely to be helpful
   3 // BEWARE: thumb functions NEED the thumb bit in the below list
   4 
   5 #define NULL_SUB        0xfc0200ad      // bx lr
   6 #define RET1            0xfc021f4d      // mov r0, #1 ; bx lr
   7 #define RET0            0xfc0211ed      // mov r0, #0 ; bx lr
   8 
   9 NHSTUB(Feof_Fut,                                                                0xfc34c961) // Ghidra exact mne v 100d
  10 NHSTUB(Fflush_Fut,                                                              0xfc34c989) // "
  11 NHSTUB(SetFileTimeStamp,                                                0xfc3517b3) // "
  12 NHSTUB(SetFileAttributes,                                               0xfc3517fb) // ", after SetFileTimeStamp in ROM
  13 NHSTUB(RenameFile_Fut,                                                  0xfc34c711) // Ghidra exact
  14 NHSTUB(MakeSDCardBootable,                                              0xfc3529d5) // "BOOTDISK" string
  15 NHSTUB(GetFocusLensSubjectDistanceFromLens,             0xfc3344bb) // Ghidra exact
  16 
  17 NHSTUB(GetImageFolder,                                                  0xfc32f3e7) // match 100d
  18 
  19 NHSTUB(LogCameraEvent,                                                  0xfc32c3df) // debugging, from func csv
  20 
  21 NHSTUB(GetDrive_TotalClusters,                                  0xfc35260f) // function immediately before GetDrive_FreeClusters in ROM
  22 NHSTUB(CancelHPTimer,                                                   0xfc3b3591) // Ghidra exact
  23 
  24 // required because DryOS >=54 functions assert on unitialized event flag, sem etc 
  25 // see https://chdk.setepontos.com/index.php?topic=12516.0
  26 NHSTUB(init_focus_eventflag,                                    0xfc52e8f3) // InitializeAdjustmentSystem->fc4415a0->fc52e8f2 event flag matches MoveFocusLensToDistance
  27 NHSTUB(CreateBinarySemaphoreStrictly,           0xfc34b9f1) // from csv
  28 
  29 NHSTUB(_pow,                                                                    0x010f8718) // note ARM
  30 
  31 // via func fc18e188 hooked in preshoot case, similar to sx710
  32 NHSTUB(captseq_raw_addr_init,                                   0xfc0f5fab)
  33 NHSTUB(apex2us,                                                                 0xfc219833) // Ghidra exact
  34 
  35 NHSTUB(exmem_alloc,                                                             0xFC3B2DDD)
  36 //NHSTUB(exmem_free,                                                    0xFC3B2E15)
  37 NHSTUB(exmem_ualloc,                                                    0xFC3B2D51)
  38 NHSTUB(exmem_ufree,                                                             0xFC3B2DAD)
  39 
  40 // SX730 NOT found
  41 NHSTUB(TurnOnBackLight,                                                 NULL_SUB)
  42 NHSTUB(TurnOffBackLight,                                                NULL_SUB)
  43 
  44 // not implemented
  45 NHSTUB(EnterToCompensationEVF,NULL_SUB)
  46 NHSTUB(ExitFromCompensationEVF,NULL_SUB)
  47 NHSTUB(ExpCtrlTool_StartContiAE,NULL_SUB)
  48 NHSTUB(ExpCtrlTool_StopContiAE,NULL_SUB)
  49 NHSTUB(Restart,NULL_SUB)
  50 NHSTUB(SetParameterData,NULL_SUB)
  51 NHSTUB(WriteSDCard,NULL_SUB)
  52 NHSTUB(reboot_fw_update,NULL_SUB)
  53 
  54 // from sx280 These don't exist
  55 NHSTUB(SetZoomActuatorSpeedPercent, NULL_SUB)
  56 NHSTUB(UnsetZoomForMovie,           NULL_SUB)
  57 

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