2024-02-04 14:06:09 +05:30
|
|
|
/*
|
|
|
|
* brexit.c
|
|
|
|
*
|
|
|
|
* Author: Intel A80486DX2-66
|
2024-04-26 01:46:39 +05:30
|
|
|
* License: Unlicense
|
2024-02-04 14:06:09 +05:30
|
|
|
*/
|
|
|
|
|
2024-02-04 15:06:24 +05:30
|
|
|
#if !(defined(unix) || defined(__unix) || defined(__unix__) || \
|
|
|
|
defined(__APPLE__) || defined(__MACH__))
|
|
|
|
# error "The architecture isn't supported for the joke :-)"
|
|
|
|
#endif
|
|
|
|
|
2024-02-04 14:49:42 +05:30
|
|
|
void Brexit(void) __attribute__((noreturn));
|
2024-02-04 14:06:09 +05:30
|
|
|
|
|
|
|
__attribute__((noreturn))
|
|
|
|
void Brexit(void) {
|
2024-02-04 14:50:58 +05:30
|
|
|
__asm__ volatile (
|
2024-02-04 14:25:56 +05:30
|
|
|
"movl $0x7F, %%ebx\n\t"
|
|
|
|
"movl $1, %%eax\n\t"
|
|
|
|
"int $0x80"
|
|
|
|
:
|
|
|
|
:
|
|
|
|
: "eax", "ebx"
|
|
|
|
);
|
|
|
|
|
|
|
|
for (;;); // https://stackoverflow.com/a/15964365
|
2024-02-04 14:06:09 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
int main(void) {
|
2024-02-04 14:25:56 +05:30
|
|
|
Brexit();
|
2024-02-04 14:06:09 +05:30
|
|
|
}
|