diff --git a/c-programming/jokes/brexit.c b/c-programming/jokes/brexit.c new file mode 100644 index 0000000..b4e0b6e --- /dev/null +++ b/c-programming/jokes/brexit.c @@ -0,0 +1,28 @@ +/* + * brexit.c + * + * Author: Intel A80486DX2-66 + * License: Creative Commons Zero 1.0 Universal + */ + +#include + +__attribute__((naked)) __attribute__((noreturn)) void Brexit(void); + +__attribute__((naked)) +__attribute__((noreturn)) +void Brexit(void) { + __asm__ volatile ( + "movl $0x7F, %%ebx\n\t" + "movl $1, %%eax\n\t" + "int $0x80" + : + : + : "eax", "ebx" + ); +} + +int main(void) { + Brexit(); +} +