冰楓論壇
標題:
[VM] TWMS V2.12.2 讀取解輪介面按鍵
[打印本頁]
作者:
btb
時間:
2018-12-14 00:10
標題:
[VM] TWMS V2.12.2 讀取解輪介面按鍵
//V_212.2 讀取解輪介面按鍵
[ENABLE]
alloc(MY_043C1577,48)
alloc(ARROW01,4)
registersymbol(ARROW01)
alloc(ARROW02,4)
registersymbol(ARROW02)
alloc(ARROW03,4)
registersymbol(ARROW03)
alloc(ARROW04,4)
registersymbol(ARROW04)
MY_043C1577:
push [ebp-68]
xchg [esp],eax
push 4
xchg [esp],eax
pop edx
imul edx,eax
push ARROW01
xchg [esp],edx
add edx,[esp]
push [esp+4]
dec eax
pop [edx]
pop edx
imul edx,eax
pop eax
push eax
jmp 04543AF6
04543AF1:
jmp MY_043C1577
[DISABLE]
04543AF1:
db 6B 55 98 0C 50
dealloc(MY_043C1577)
dealloc(ARROW01)
unregistersymbol(ARROW01)
dealloc(ARROW02)
unregistersymbol(ARROW02)
dealloc(ARROW03)
unregistersymbol(ARROW03)
dealloc(ARROW04)
unregistersymbol(ARROW04)
// 讀取到的按鍵依序放在ARROW01、ARROW02、ARROW03、ARROW04之中,
// 0 = 方向鍵下、1 = 方向鍵上、2 = 方向鍵左、3 = 方向鍵右
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓