You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
351 B

; call cpuid with args in eax, ecx
; store eax, ebx, ecx, edx to p
PUBLIC GetStackPtr64
GetStackPtr64 PROC FRAME
; unsigned char* GetStackPtr64(void);
mov rax, rsp ; get stack ptr
add rax, 8h ; account for 8-byte return value of this function
GetStackPtr64 ENDP