| 1 | #include "stubs_asm.h" |
|---|
| 2 | |
|---|
| 3 | // manually searched / corrected adresses in canon firmware |
|---|
| 4 | |
|---|
| 5 | NHSTUB(AllocateMemory, 0xFF81AC70) |
|---|
| 6 | NHSTUB(FreeMemory, 0xFF81AC5C) |
|---|
| 7 | |
|---|
| 8 | NHSTUB(Open, 0xFF87B55C) // before Close() |
|---|
| 9 | NHSTUB(free, 0xFFB5ABC8) |
|---|
| 10 | NHSTUB(Rename, 0xFF87B644) // after Write() |
|---|
| 11 | |
|---|
| 12 | NHSTUB(GetDrive_ClusterSize, 0xFF87AD70) // note "GetCatFs_ClusterSize" |
|---|
| 13 | NHSTUB(GetDrive_TotalClusters, 0xFF87ADAC) // note "GetCatFs_TotalClusters" |
|---|
| 14 | NHSTUB(GetDrive_FreeClusters, 0xFF87ADE8) // note "GetCatFs_FreeClusters" |
|---|
| 15 | |
|---|
| 16 | NHSTUB(WriteSDCard, 0xFF88A8A4) |
|---|
| 17 | |
|---|
| 18 | NHSTUB(kbd_pwr_on, 0xFF8291F8) |
|---|
| 19 | NHSTUB(kbd_pwr_off, 0xFF829238) |
|---|
| 20 | NHSTUB(kbd_read_keys, 0xFF828024) |
|---|
| 21 | NHSTUB(kbd_read_keys_r2, 0xFF828D40) // search for "MOVL R4, 0x223000" |
|---|
| 22 | NHSTUB(taskNameToId, 0xFFB67700) |
|---|
| 23 | |
|---|
| 24 | NHSTUB(SetZoomActuatorSpeedPercent, 0xFF8E5AAC) |
|---|
| 25 | |
|---|
| 26 | NHSTUB(MFOn, 0xFF98FBF0) |
|---|
| 27 | NHSTUB(MFOff, 0xFF98FC20) |
|---|
| 28 | |
|---|
| 29 | NHSTUB(ExpCtrlTool_StopContiAE, 0xFF91F0FC) |
|---|
| 30 | NHSTUB(ExpCtrlTool_StartContiAE, 0xFF91F0CC) |
|---|
| 31 | NHSTUB(MakeAFScan, 0xFF993BE4) |
|---|
| 32 | |
|---|
| 33 | NHSTUB(GetBatteryTemperature, 0xFF82F584) |
|---|
| 34 | NHSTUB(GetCCDTemperature, 0xFF82F570) |
|---|
| 35 | NHSTUB(GetOpticalTemperature, 0xFF82F55C) |
|---|
| 36 | NHSTUB(PT_PlaySound, 0xFF99F320) |
|---|
| 37 | |
|---|
| 38 | NHSTUB(EnterToCompensationEVF, 0xFF98F004) |
|---|
| 39 | NHSTUB(ExitFromCompensationEVF, 0xFF98F044) |
|---|
| 40 | |
|---|
| 41 | NHSTUB(DoAFLock, 0xFF98EE30) |
|---|
| 42 | NHSTUB(UnlockAF, 0xFF98EE7C) |
|---|
| 43 | |
|---|
| 44 | NHSTUB(SetScriptMode, 0xFF9A6394) // search for SetScriptMode in IDA |
|---|
| 45 | |
|---|
| 46 | // CAM_CONSOLE_LOG_ENABLED |
|---|
| 47 | NHSTUB(iosInit, 0xFFB58E2C) |
|---|
| 48 | NHSTUB(ttyDrv_Start, 0xFF811874) // VxWorks console |
|---|
| 49 | NHSTUB(GetLogToFile, 0xFFB44520) // GetLogToFile() -> A/ROMLOG.txt |
|---|
| 50 | |
|---|
| 51 | NHSTUB(GetSystemTime, 0xFF8150D8) // not in use yet, maybe usefull for CAM_CONSOLE_LOG_ENABLED |
|---|
| 52 | |
|---|
| 53 | NHSTUB(TurnOnBackLight, 0xFF9F5308) |
|---|
| 54 | NHSTUB(TurnOffBackLight, 0xFF9F5338) |
|---|