diff options
Diffstat (limited to 'win64.asm')
-rw-r--r-- | win64.asm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/win64.asm b/win64.asm new file mode 100644 index 000000000..21bfebbde --- /dev/null +++ b/win64.asm @@ -0,0 +1,17 @@ + .CODE + +PUBLIC _get_save_esp +_get_save_esp: + MOV RAX,RSP + RET + +PUBLIC _rdtsc +_rdtsc: + RDTSC + MOV RCX,RDX + SHL RCX,32 + AND RAX,0FFFFFFFFh + OR RAX,RCX + RET + + END |