1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-01-10 17:32:05 +05:30

29 lines
469 B
C
Raw Normal View History

2024-02-04 11:36:09 +03:00
/*
* brexit.c
*
* Author: Intel A80486DX2-66
* License: Creative Commons Zero 1.0 Universal
*/
#include <stdio.h>
__attribute__((naked)) __attribute__((noreturn)) _Noreturn void Brexit(void);
2024-02-04 11:36:09 +03:00
__attribute__((naked))
__attribute__((noreturn))
_Noreturn
2024-02-04 11:36:09 +03:00
void Brexit(void) {
__asm__ volatile (
"movl $0x7F, %%ebx\n\t"
"movl $1, %%eax\n\t"
"int $0x80"
:
:
: "eax", "ebx"
);
}
int main(void) {
Brexit();
}