冰楓論壇

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

作者: prt    時間: 2023-4-15 01:22
標題: TwMs v251.3 人物左右走
  1. //TwMs v251.3 人物左右走
  2. [ENABLE]
  3. Alloc(AutoLRICSEntry,128,148241D80)
  4. Alloc(AutoLRRange,08,148241D80)
  5. Alloc(AutoLRMain,256,148241D80)
  6. Alloc(AutoLRValue,08,148241D80)
  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,140BF75A3
  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 140BF75A3
  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. xor r14l,r14l
  36. mov [rsp+60],FFFFFFFF
  37. jmp 140BF75C5

  38. GoRight:
  39. xor r14l,r14l
  40. mov [rsp+60],1

  41. jmp 140BF75C5

  42. 148242D90:
  43. DQ AutoLRICSEntry

  44. [DISABLE]
  45. 148242D90:
  46. DQ GetFocus

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

作者: shock_131429055    時間: 2023-4-24 19:19
為何會出現 error in line 13 DQ A
This instruction cant be compiled??
球解決辦法




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