OpenTTD-patches/win64.asm
Darkvater a3d40a29fc (svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)
Fix warning in graph_gui.c with const problem
2005-10-02 22:39:56 +00:00

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