cosmopolitan/libc/nt/user32/GetSystemMetrics.S
Bach Le baad1df71d
Add several NT functions (#1318)
With these addtions, I could build and run a
[sokol](https://github.com/floooh/sokol) application (using OpenGL) on
both Linux and Windows.
2024-10-27 21:10:32 -07:00

20 lines
343 B
ArmAsm

#include "libc/nt/codegen.h"
.imp user32,__imp_GetSystemMetrics,GetSystemMetrics
.text.windows
.ftrace1
GetSystemMetrics:
.ftrace2
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
mov %rdi,%rcx
sub $32,%rsp
call *__imp_GetSystemMetrics(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetSystemMetrics,globl
.previous