冰楓論壇

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

作者: prt    時間: 2024-10-26 02:06
標題: TwMs v265.4 人物左右走
  1. //TwMs v265.4 人物左右走
  2. [ENABLE]
  3. Alloc(AutoLRICSEntry,128,1410A1B50)
  4. Alloc(AutoLRRange,08,1410A1B50)
  5. Alloc(AutoLRMain,256,1410A1B50)
  6. Alloc(AutoLRValue,08,1410A1B50)
  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,1410A1B50
  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 1410A1B50
  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 1410A1B7F

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


  42. 147DEC6B0:
  43. DQ AutoLRICSEntry

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

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





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