2024-02-04 14:06:09 +05:30
|
|
|
/*
|
|
|
|
* brexit.c
|
|
|
|
*
|
|
|
|
* Author: Intel A80486DX2-66
|
|
|
|
* License: Creative Commons Zero 1.0 Universal
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2024-02-04 14:35:05 +05:30
|
|
|
__attribute__((noreturn)) void Brexit(void);
|
2024-02-04 14:06:09 +05:30
|
|
|
|
|
|
|
__attribute__((noreturn))
|
|
|
|
void Brexit(void) {
|
2024-02-04 14:25:56 +05:30
|
|
|
asm volatile (
|
|
|
|
"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
|
|
|
}
|