mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-11-15 05:45:55 +05:30
27 lines
390 B
C
27 lines
390 B
C
/*
|
|
* brexit.c
|
|
*
|
|
* Author: Intel A80486DX2-66
|
|
* License: Creative Commons Zero 1.0 Universal
|
|
*/
|
|
|
|
void Brexit(void) __attribute__((noreturn));
|
|
|
|
__attribute__((noreturn))
|
|
void Brexit(void) {
|
|
__asm__ volatile (
|
|
"movl $0x7F, %%ebx\n\t"
|
|
"movl $1, %%eax\n\t"
|
|
"int $0x80"
|
|
:
|
|
:
|
|
: "eax", "ebx"
|
|
);
|
|
|
|
for (;;); // https://stackoverflow.com/a/15964365
|
|
}
|
|
|
|
int main(void) {
|
|
Brexit();
|
|
}
|