mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
18 lines
171 B
NASM
18 lines
171 B
NASM
|
.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
|