1
0
mirror of https://github.com/nillerusr/source-engine.git synced 2025-03-13 06:01:53 +00:00
source-engine/vstdlib/getstackptr64.masm
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

18 lines
351 B
Plaintext

; 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