mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-10 19:06:24 +00:00
18 lines
300 B
ArmAsm
18 lines
300 B
ArmAsm
#include "libc/nt/codegen.h"
|
|
.imp kernel32,__imp_FreeConsole,FreeConsole,0
|
|
|
|
.text.windows
|
|
FreeConsole:
|
|
#ifdef __x86_64__
|
|
push %rbp
|
|
mov %rsp,%rbp
|
|
.profilable
|
|
sub $32,%rsp
|
|
call *__imp_FreeConsole(%rip)
|
|
leave
|
|
#elif defined(__aarch64__)
|
|
mov x0,#0
|
|
#endif
|
|
ret
|
|
.endfn FreeConsole,globl
|
|
.previous
|