爱技术

 找回密码
 注册会员

QQ登录

只需一步,快速开始

微信登录

微信扫一扫,快速登录

搜索
查看: 857|回复: 9
收起左侧

[MP][x75]API - v14.0

[复制链接]
发表于 2006-6-30 12:33:55 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?注册会员 微信登录

x
函数库,顺便帖过来这边,C7C的直接撤销旧的刷新的就可以了,qt移植的S7C的MP由于是新的规范,所以不能刷,C7C没问题

  1. ;* API *
  2. ;This Patch contains some useful functions which have not been found in FW
  3. ;It is universal and can be installed on every x65-x75 phone without changing
  4. ;v14.0
  5. #pragma enable old_equal_ff
  6. ;----------------------------------------
  7. ; API - OpenReadCloseFile - fix
  8. ; v1.1
  9. ; (c) Lisugar
  10. ; (!) FunctionLibrary(f010, f011, f013, f015, f020)

  11. ;因为C6C一直没有找到这个函数影响进度, 因此, 写了这个函数暂时代替
  12. ;C6C必须刷这个函数其他机型可以不刷

  13. ; R0 = the address of filename
  14. ; R1 = a pointer to the address of buffer want to read in
  15. ;      the address of buffer will be malloced automaticly
  16. ; return R0 -1 when find err else return filesize
  17. ; return R1 the pointer of the address of buffer

  18. 0xFCFFA0: FEB581B00E1C6B4680221102F0F750F8
  19. 0xFCFFB0: 051C431C002B1DD0281C002102226B46
  20. 0xFCFFC0: F0F75AF800280FDD041CF0F769F83060
  21. 0xFCFFD0: 281C002100226B46F0F74EF8281C3168
  22. 0xFCFFE0: 221C6B46F0F738F8061C6946281CF0F7
  23. 0xFCFFF0: 3BF8301C01B0FEBD
  24. ;----------------------------------------
  25. ;OpenWriteCloseFile
  26. ;v1.1
  27. ;(c) 1nvisible
  28. ;Writes Buffer to a File
  29. ;R0 - File Name
  30. ;R1 - Buffer Pointer
  31. ;R2 - Bytes to Write

  32. 0FCF000: FFB50D1C161C0849FF2201326B46F1F7
  33. 0FCF010: 1FF8291C321C061C6B46F1F721F8301C
  34. 0FCF020: 6946F1F721F8FFBD01030000
  35. ;----------------------------------------
  36. ;ReturnProcedure
  37. ;v1.0
  38. ;(c) 1nvisible
  39. ;Returns from ldr/blx patches by adding 4 to LR

  40. 0FCF030: 0040BDE804E08EE21EFF2FE1
  41. ;----------------------------------------
  42. ;Hex2Int
  43. ;v1.0
  44. ;(c) empeka
  45. ;This function converts numerical string containing hexadecimal value to 32bit integer
  46. ;Parameters:
  47. ;R0: pointer to string
  48. ;R1: address for pointer containing last processed byte from input string (optional)
  49. ;Output:
  50. ;R0: received value (32bit)
  51. ;R1: pointer to last processed character
  52. ;Notes:
  53. ;Function automatically skips blanks (0x20) and new lines (0x13) in given string, so "123 4" is possible in input
  54. ;If function encounters character, which is one of above, nor hexadecimal digit, it breaks execution.

  55. 0FCF050: 10B5002302780130141C093C042CF9D9
  56. 0FCF060: 202AF7D0302A15D3662A13D8392A09DD
  57. 0FCF070: 412A0FDB462A03DD612A0BDB573A02E0
  58. 0FCF080: 373A00E0303A1C1C102363439B180278
  59. 0FCF090: 0130E7E7002901D001380860181C10BD
  60. ;----------------------------------------
  61. ; StrAnsi2Uni
  62. ; in:  R0 = pointer to ANSI string (0-term),
  63. ;      R1 = pointer to Unicode string buffer (1st word - len)

  64. 0FCF0A0: FFB5021C00230224D05C002805D000F0
  65. 0FCF0B0: 17F8085301330234F6E70B80FFBD
  66. ;----------------------------------------
  67. ; StrUni2Ansi
  68. ; in:  R0 = pointer to Unicode string (1st word - len),
  69. ;      R1 = pointer to ANSI string buffer

  70. 0FCF0C0: FFB50388821C108800F03AF808700131
  71. 0FCF0D0: 0232013B002BF6D10B70FFBD
  72. ;----------------------------------------
  73. ; CharAnsi2Unicode
  74. ; in:  R0 = ANSI char
  75. ; out: R0 = Unicode char

  76. 0FCF0E0: 02B5A821884228DB15D0401A182803DB
  77. 0FCF0F0: 572822DC08381DE002280ED007280ED0
  78. 0FCF100: 0A280ED00B280ED010280ED012280ED0
  79. 0FCF110: 17280ED011E001200CE004200AE00720
  80. 0FCF120: 08E0062006E0562004E0512002E05420
  81. 0FCF130: 00E0572004210902401802BD
  82. ;----------------------------------------
  83. ; CharUnicode2Ansi
  84. ; in:  R0 = Unicode char
  85. ; out: R0 = ANSI char

  86. 0FCF140: 02B504210902884228DB401A102803DB
  87. 0FCF150: 4F280ADC083020E001280FD004280FD0
  88. 0FCF160: 06280FD007280FD018E051280ED05428
  89. 0FCF170: 0ED056280ED057280ED00FE000200CE0
  90. 0FCF180: 02200AE00A2008E0072006E0102004E0
  91. 0FCF190: 122002E00B2000E01720A83002BD
  92. ;----------------------------------------
  93. ;DrawText
  94. ;v1.1
  95. ;(c) 1nvisible
  96. ;(r) benj9, KreN
  97. ;Draws a text string.
  98. ;R0 - wstring
  99. ;R1 - x
  100. ;R2 - y
  101. ;R3 - font
  102. ;[SP] - width
  103. ;[SP+4] - height
  104. ;[SP+8] - alignment
  105. ;[SP+12] - text color
  106. ;[SP+16] - bg color
  107. ;[SP+20] - inversion

  108. 0FCF1B0: F0B5FFB0041C1D1C859B009304A8849B
  109. 0FCF1C0: F1F7F2F808A804A9899A2B1C0093869B
  110. 0FCF1D0: 0193029402ABF1F7EBF808A88799889A
  111. 0FCF1E0: F1F7EAF808A8F1F7EFF808A8F1F7F0F8
  112. 0FCF1F0: 7FB0F0BD
  113. ;----------------------------------------
  114. ;OpenReadCloseFile
  115. ;v1.1
  116. ;(c) KreN
  117. ;Reads whole file to RAM. Supports >64k files.
  118. ;R0 - File Name (0-term str)
  119. ;R1 - RAM for ptr (4 bytes)

  120. 0FCF200: FEB582B00D1C041C00F04AF8411C36D0
  121. 0FCF210: 061E201C802211026B46F0F719FF0190
  122. 0FCF220: 411C2CD0701CF0F73BFF2860051C0024
  123. 0FCF230: 84550294029901291AD0802000020030
  124. 0FCF240: 86420CD9211C019800226B46F0F714FF
  125. 0FCF250: 8022120200322919A418B61A03E02919
  126. 0FCF260: 321C0120029001986B46F0F7F5FEE1E7
  127. 0FCF270: 01986946F0F7F8FEA01902B0FEBD0020
  128. 0FCF280: 2860C043F9E7
  129. ;----------------------------------------
  130. ;GetFileSize
  131. ;v1.1
  132. ;(c) KreN
  133. ;Returns File Size.
  134. ;R0 - File Name (0-term str)

  135. 0FCF2A0: FEB58BB06A4601A9F1F7BAF8411C00D0
  136. 0FCF2B0: 02980BB0FEBD
  137. ;----------------------------------------
  138. ;Seconds2iTime
  139. ;v1.0
  140. ;(c) benj9
  141. ;in: R0 - time (seconds)
  142. ;out: R0 - iTime

  143. 0FCF300: FEB505210902143141430620F1F758F9
  144. 0FCF310: FEBD
  145. ;----------------------------------------
  146. ; CanvasDraw
  147. ; R0 - X
  148. ; R1 - Y
  149. ; R2 - Pic
  150. 0FCF320: FFB570BC101CF0F7EFFE40190121401A
  151. 0FCF330: 03B4301CF0F7ECFE0319013B2A1C211C
  152. 0FCF340: F1F722FA381CF0F7EFFE02B0F8BD
  153. ;----------------------------------------
  154. ; DrawPicWithCanvas
  155. ; R0 - X
  156. ; R1 - Y
  157. ; R2 - Pic
  158. 0FCF350: FFB570BCFFF7E4FF70B407BCF0F7E0FE
  159. 0FCF360: F8BD
  160. ;----------------------------------------
  161. ; DrawColorPicWithCanvas
  162. ; R0 - X
  163. ; R1 - Y
  164. ; R2 - Pic
  165. ; R3 - * color (color addr)
  166. ; [SP] - * bg color (color addr)
  167. 0FCF370: FFB570BCFFF7D4FF069A08BC04B470B4
  168. 0FCF380: 07BCF0F7D5FE01B0F0BD

  169. #pragma disable old_equal_ff
复制代码

评分

参与人数 1实力分 +1 金钱数 +20 收起 理由
adam5237 + 1 + 20 奖:感谢-你和大家分享资源与经验!

查看全部评分

发表于 2006-6-30 14:15:10 | 显示全部楼层
支持!!!!!!!!
回复 支持 反对

使用道具 举报

发表于 2006-6-30 14:21:14 | 显示全部楼层
STAR强人呀。。。。。。
回复 支持 反对

使用道具 举报

头像被屏蔽
发表于 2006-6-30 14:27:04 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2006-6-30 16:39:47 | 显示全部楼层
支持的!!!!!!!!!!
回复 支持 反对

使用道具 举报

发表于 2006-6-30 17:13:23 | 显示全部楼层
m75能用吗
回复 支持 反对

使用道具 举报

发表于 2006-6-30 17:34:12 | 显示全部楼层
CX75能用吗??谢谢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-30 20:07:16 | 显示全部楼层
这个是master patch的一个基础补丁,m和cx都没有移植mp,刷可以,但不会有任何效果
回复 支持 反对

使用道具 举报

发表于 2006-6-30 20:22:25 | 显示全部楼层
搞移植都是从哪里看的资料?
除了0110的SPGC版,还有哪些国外的论坛?

原帖由 starfriend 于 2006-6-30 20:07 发表
这个是master patch的一个基础补丁,m和cx都没有移植mp,刷可以,但不会有任何效果
回复 支持 反对

使用道具 举报

发表于 2006-6-30 20:55:37 | 显示全部楼层
支持吧~~~都牛人
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员 微信登录

本版积分规则

小黑屋|Archiver|手机版|爱技术 ( 沪ICP备08115260号-3 )

GMT+8, 2024-5-19 04:24

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表