- 积分
- 138
- 实力分
- 点
- 金钱数
- 两
- 技术分
- 分
- 贡献分
- 分
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
自动生成一些常用的函数清单,适合补丁开发用.
- "Function Library":It needs for creating patch "Function library".It smth like "Interrupt hook table".
Smelter 6.85
实例:
;S65v58 - Functions and variables library
;(c) avkiev
;16.10.2005
;It is auxiliary patch. It consist of 100 most useable function, 20 variables and 8 constants.
;After applying this patch for calling (for example) GetWeek - you should write "bl A0FC0008".
;For getting in R0 variable RamCap you sould write "bl A0FC0320". In any mobile. In any firmware.
;After porting this patch to some firmware - in most cases for porting another patches you just need to change a EntryPoint.
;For porting this patch use Smelter - Tools - Function library.
;004B1847 = LDR R3, [...]; BX R3
;004F3847 = LDR R7, [...]; BX R7 - if we can't destroy R3 (for example sprintf)
;0048F746 = LDR R0, [...]; MOV PC,LR
+0FC0000
#pragma enable old_equal_ff
000: 004B1847,0xA0C36BBB ; f00: GetDateTime
008: 004B1847,0xA08257CF ; f01: GetWeek
010: 004B1847,0xA08C9B0D ; f02: GetProfile
018: 004B1847,0xA08C99DB ; f03: SetProfile
020: 004B1847,0xA166AB00 ; f04: dwMODdw
028: 004B1847,0xA000AF0D ; f05: DecToHex
030: 004B1847,0xA123FAD8 ; f06: GetAkku
038: 004B1847,0xA1405D5D ; f07: GetLP
040: 004B1847,0xA1240D9C ; f08: SetIllumination
048: 004B1847,0xA1263C38 ; f09: SwitchPhoneOff
050: 004B1847,0xA122ECB0 ; f10: fopen
058: 004B1847,0xA122ECF0 ; f11: fread
060: 004B1847,0xA122EDD8 ; f12: fwrite
068: 004B1847,0xA122EC04 ; f13: fclose
070: 004B1847,0xA122EC34 ; f14: fflush
078: 004B1847,0xA122EC64 ; f15: lseek
080: 004B1847,0xA128B2A4 ; f16: mkdir
088: 004B1847,0xA0BD4CB7 ; f17: OpenReadCloseFile
090: 004B1847,0xA128B798 ; f18: GetFileAttrib
098: 004B1847,0xA128B2A4 ; f19: SetFileAttrib
0A0: 004B1847,0xA0820F98 ; f20: malloc
0A8: 004B1847,0xA0821000 ; f21: mfree
0B0: 004F3847,0xA1669A99 ; F22: sPrintf
0B8: 004B1847,0xA166AD20 ; f23: strcat
0C0: 004B1847,0xA166AD40 ; f24: strchr
0C8: 004B1847,0xA166AD64 ; f25: strcmp
0D0: 004B1847,0xA166AE01 ; f26: StrCopyThumb
0D8: 004B1847,0xA166AE81 ; f27: StrLen
0E0: 004B1847,0xA0C30EF5 ; f28: wsAppendChar
0E8: 004B1847,0xA0C30EA9 ; f29: wsInsertChar
0F0: 004B1847,0xA11599C1 ; f30: GetPITaddr
0F8: 004B1847,0xA16A00A3 ; f31: DrawMainScreen
100: 004B1847,0xA16A2B65 ; f32: DrawScreenSaver
108: 004B1847,0xA1159AF5 ; f33: GetImgHeight
110: 004B1847,0xA1159B05 ; f34: GetImgWidth
118: 004B1847,0xA1699230 ; f35: DrawImg
120: 004B1847,0xA1150BB5 ; f36: DrawImage2
128: 004B1847,0xA169920B ; f37: DrawCanvas
;130: 004B1847,0x ; f38:
;138: 004B1847,0x ; f39:
140: 004B1847,0xA1241E04 ; f40: getEELiteMaxID
148: 004B1847,0xA122D6D0 ; f41: getEEFullMaxID
150: 004B1847,0xA1241CA0 ; f42: GetEELiteBlockAddress
158: 004B1847,0xA1241DA8 ; f43: getEELiteBlockSizeVersion
160: 004B1847,0xA122D314 ; f44: getEEFullBlockSizeVersion
168: 004B1847,0xA1241E38 ; f45: StartWriteEELiteBlock
170: 004B1847,0xA1241EB4 ; f46: FinishWriteEELiteBlock
178: 004B1847,0xA1241E10 ; f47: DeleteEELiteBlock
180: 004B1847,0xA1241E70 ; f48: WriteEELiteBlock
;188: 004B1847,0x ; f49:
190: 004B1847,0xA0968D20 ; f50: PlaySound
198: 004B1847,0xA095EF04 ; f51: PlaySound2
1A0: 004B1847,0xA0946400 ; f52: PlaySoundLoop
1A8: 004B1847,0xA0BB359F ; f53: AlarmClockRing
1B0: 004B1847,0xA0B365E5 ; f54: GetATCmdString
1B8: 004B1847,0xA0BB51BF ; f55: OriginalATCGSN
1C0: 004B1847,0xA0B35F81 ; f56: PostAtCommand
1C8: 004B1847,0xA0B376BB ; f57: SendATAnswerStr
1D0: 004B1847,0xA0BD8851 ; f58: mfree_high
1D8: 004B1847,0xA166A49C ; f59: MemChr
1E0: 004B1847,0xA122ED30 ; f60: SetFileSize
1E8: 004B1847,0xA0A47F21 ; f61: editOrNewTXTModule
1F0: 004B1847,0xA0B356E9 ; f62: LoadProcesses
1F8: 004B1847,0xA1151818 ; f63: SelectColor
;200: 004B1847,0x ; f64: GetVibraStatus
;208: 004B1847,0x ; f65: GetProvider
;210: 004B1847,0x ; f66: IsScreenSaver
;218: 004B1847,0x ; f67: IsUnlocked
;220: 004B1847,0x ; f68: TempLigntOn
;228: 004B1847,0x ; f69: GetWavLen
;230: 004B1847,0x ; f70: HasNewSMS
;238: 004B1847,0x ; f71: HasFlashSMS
;240: 004B1847,0x ; f72: ReadNewSMS
;248: 004B1847,0x ; f73: ReadFlashSMS
;250: 004B1847,0x ; f74: PlayFile
;258: 004B1847,0x ; f75: StartMidlet
;260: 004B1847,0x ; f76: GetMissedCallsCount
;268: 004B1847,0x ; f77: CallAfterTimer
;270: 004B1847,0x ; f78:
;278: 004B1847,0x ; f79:
;280: 004B1847,0x ; f80:
;288: 004B1847,0x ; f81:
;290: 004B1847,0x ; f82:
;298: 004B1847,0x ; f83:
;2A0: 004B1847,0x ; f84:
;2A8: 004B1847,0x ; f85:
;2B0: 004B1847,0x ; f86:
;2B8: 004B1847,0x ; f87:
;2C0: 004B1847,0x ; f88:
;2C8: 004B1847,0x ; f89:
;2D0: 004B1847,0x ; f90:
;2D8: 004B1847,0x ; f91:
;2E0: 004B1847,0x ; f92:
;2E8: 004B1847,0x ; f93:
;2F0: 004B1847,0x ; f94:
;2F8: 004B1847,0x ; f95:
;300: 004B1847,0x ; f96:
;308: 004B1847,0x ; f97:
;310: 004B1847,0x ; f98:
;318: 004B1847,0x ; f99:
;320: 0048F746,0x ; v00: RamCap
;328: 0048F746,0x ; v01: RamLS
;330: 0048F746,0x ; v02: RamNetCH
;338: 0048F746,0x ; v03: RamNetRX
;340: 0048F746,0x ; v04: RamIsMissed
;348: 0048F746,0x ; v05: RamDateTime
;350: 0048F746,0x ; v06: RamAlarm
;358: 0048F746,0x ; v07: RamMissedMes
;360: 0048F746,0x ; v08: RamAccPoint
;368: 0048F746,0x ; v09:
;370: 0048F746,0x ; v10:
;378: 0048F746,0x ; v11:
;380: 0048F746,0x ; v12:
;388: 0048F746,0x ; v13:
;390: 0048F746,0x ; v14:
;398: 0048F746,0x ; v15:
;3A0: 0048F746,0x ; v16:
;3A8: 0048F746,0x ; v17:
;3B0: 0048F746,0x ; v18:
;3B8: 0048F746,0x ; v19:
3C0: 0048F746,0xA8770000 ; z00: FreeRAM
3C8: 0048F746,0xA0FC0400 ; z01: GetBuffer
3D0: 0048F746,0x00001297 ; z02: LP_MonthShort
3D8: 0048F746,0x0000047E ; z03: Pic_Big0
3E0: 0048F746,0x00000405 ; z04: Pic_Little0
;3E8: 0048F746,0x ; z05:
;3F0: 0048F746,0x ; z06:
3F8: 0048F746,0xA0FC0000 ; z07: Library
#pragma disable old_equal_ff
+0 |
评分
-
查看全部评分
|