冰楓論壇

標題: TwMs v262.2 人物左右走 [打印本頁]

作者: prt    時間: 2024-6-30 03:27
標題: TwMs v262.2 人物左右走
  1. //TwMs v262.2 人物左右走
  2. [ENABLE]
  3. Alloc(AutoLRICSEntry,128,140F74920)
  4. Alloc(AutoLRRange,08,140F74920)
  5. Alloc(AutoLRMain,256,140F74920)
  6. Alloc(AutoLRValue,08,140F74920)
  7. Label(ICSReturn)
  8. Label(GoLeft)
  9. Label(GoRight)


  10. AutoLRRange:
  11. DQ A  //16進制 A=10 設置0為不左右走

  12. AutoLRICSEntry:
  13. push rax
  14. mov rax,140F74920
  15. cmp [rsp+08],rax
  16. jne ICSReturn
  17. mov rax,AutoLRMain
  18. mov [rsp+08],rax
  19. ICSReturn:
  20. pop rax
  21. jmp GetFocus

  22. AutoLRMain:
  23. cmp [AutoLRRange], 0
  24. je 140F74920
  25. inc [AutoLRValue]
  26. mov eax,[AutoLRRange]
  27. cmp eax,[AutoLRValue]
  28. jge GoLeft
  29. add eax,[AutoLRRange]
  30. cmp eax,[AutoLRValue]
  31. jge GoRight
  32. mov [AutoLRValue],1
  33. jmp GoLeft

  34. GoLeft:
  35. mov byte ptr [rbp-0A],00
  36. mov [rbp+000000E0],FFFFFFFF
  37. jmp 140F7494F

  38. GoRight:
  39. mov byte ptr [rbp-0A],00
  40. mov [rbp+000000E0],01
  41. jmp 140F7494F


  42. 147B61B00:
  43. DQ AutoLRICSEntry

  44. [DISABLE]
  45. 147B61B00:
  46. DQ GetFocus

  47. DeAlloc(AutoLRMain)
  48. DeAlloc(AutoLRValue)
  49. DeAlloc(AutoLRRange)
  50. DeAlloc(AutoLRICSEntry)
複製代碼





歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓