Add WIN32 symbols for OpenGL support (#304)

This commit is contained in:
jacereda 2021-10-26 23:18:13 +02:00 committed by GitHub
parent 30cd28b1f8
commit 0a0997a872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 290 additions and 92 deletions

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_AdjustWindowRect,AdjustWindowRect,1507
.text.windows
AdjustWindowRect:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AdjustWindowRect(%rip),%rax
jmp __sysv2nt
.endfn AdjustWindowRect,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_CreateIconIndirect,CreateIconIndirect,1618
.text.windows
CreateIconIndirect:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_CreateIconIndirect(%rip)
leave
ret
.endfn CreateIconIndirect,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_DestroyIcon,DestroyIcon,1687
.text.windows
DestroyIcon:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_DestroyIcon(%rip)
leave
ret
.endfn DestroyIcon,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_GetDC,GetDC,1830
.text.windows
GetDC:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_GetDC(%rip)
leave
ret
.endfn GetDC,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_GetKeyboardLayout,GetKeyboardLayout,1867
.text.windows
GetKeyboardLayout:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_GetKeyboardLayout(%rip)
leave
ret
.endfn GetKeyboardLayout,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_InvalidateRect,InvalidateRect,2048
.text.windows
InvalidateRect:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_InvalidateRect(%rip),%rax
jmp __sysv2nt
.endfn InvalidateRect,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_MapVirtualKeyExW,MapVirtualKeyExW,2155
.text.windows
MapVirtualKeyEx:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_MapVirtualKeyExW(%rip),%rax
jmp __sysv2nt
.endfn MapVirtualKeyEx,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_PeekMessageW,PeekMessageW,2201
.text.windows
PeekMessage:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_PeekMessageW(%rip),%rax
jmp __sysv2nt6
.endfn PeekMessage,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_ReleaseDC,ReleaseDC,2280
.text.windows
ReleaseDC:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_ReleaseDC(%rip),%rax
jmp __sysv2nt
.endfn ReleaseDC,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_SetWindowLongW,SetWindowLongW,2398
.text.windows
SetWindowLong:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetWindowLongW(%rip),%rax
jmp __sysv2nt
.endfn SetWindowLong,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_UpdateWindow,UpdateWindow,2474
.text.windows
UpdateWindow:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_UpdateWindow(%rip)
leave
ret
.endfn UpdateWindow,globl
.previous