added tiers, vstdlib

This commit is contained in:
Fisual
2022-06-15 19:04:06 +07:00
parent ee744a24c4
commit f248151331
104 changed files with 38642 additions and 36 deletions

View File

@@ -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