Team Fortress 2 Source Code as on 22/4/2020
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

  1. ; call cpuid with args in eax, ecx
  2. ; store eax, ebx, ecx, edx to p
  3. PUBLIC GetStackPtr64
  4. .CODE
  5. GetStackPtr64 PROC FRAME
  6. ; unsigned char* GetStackPtr64(void);
  7. .endprolog
  8. mov rax, rsp ; get stack ptr
  9. add rax, 8h ; account for 8-byte return value of this function
  10. ret
  11. GetStackPtr64 ENDP
  12. _TEXT ENDS
  13. END