mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-30 14:09:19 +00:00
1
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
; call cpuid with args in eax, ecx
|
||||
; store eax, ebx, ecx, edx to p
|
||||
PUBLIC GetStackPtr64
|
||||
.CODE
|
||||
|
||||
GetStackPtr64 PROC FRAME
|
||||
; unsigned char* GetStackPtr64(void);
|
||||
.endprolog
|
||||
|
||||
mov rax, rsp ; get stack ptr
|
||||
add rax, 8h ; account for 8-byte return value of this function
|
||||
|
||||
ret
|
||||
|
||||
GetStackPtr64 ENDP
|
||||
_TEXT ENDS
|
||||
END
|
||||
Reference in New Issue
Block a user