mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-19 17:58:13 +00:00
Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm
The .masm suffix should give meson sufficient info about the file being MASM instead of NASM/YASM.
This commit is contained in:
29
src/stdlib/SDL_mslibc_x64.masm
Normal file
29
src/stdlib/SDL_mslibc_x64.masm
Normal file
@@ -0,0 +1,29 @@
|
||||
include ksamd64.inc
|
||||
|
||||
text SEGMENT EXECUTE
|
||||
|
||||
public __chkstk
|
||||
|
||||
__chkstk:
|
||||
sub rsp,010h
|
||||
mov QWORD PTR [rsp],r10
|
||||
mov QWORD PTR [rsp+08h],r11
|
||||
xor r11,r11
|
||||
lea r10,[rsp+018h]
|
||||
sub r10,rax
|
||||
cmovb r10,r11
|
||||
mov r11,QWORD PTR gs:[TeStackLimit]
|
||||
cmp r10,r11
|
||||
jae chkstk_finish
|
||||
and r10w,0f000h
|
||||
chkstk_loop:
|
||||
lea r11,[r11-PAGE_SIZE]
|
||||
mov BYTE PTR [r11],0h
|
||||
cmp r10,r11
|
||||
jne chkstk_loop
|
||||
chkstk_finish:
|
||||
mov r10,QWORD PTR [rsp]
|
||||
mov r11,QWORD PTR [rsp+08h]
|
||||
add rsp,010h
|
||||
ret
|
||||
end
|
Reference in New Issue
Block a user