blob: 7c2fbcbd47065838cacf1f6a66045edbedbf0652 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "vga.h"
#include "printf.h"
const char *bees_msg =
"\n\n\n"
" / \\ the number of bees generated by citrons os has exceeded the" "\n"
" / \\ maximum amount your computer is capable of handling." "\n"
" \\ -- /" "\n"
" _====_ your computer will now halt." "\n"
" / |--| \\" "\n"
" / /==\\ \\ error: %s" "\n"
" / /----\\ \\" "\n"
" / /======\\ \\" "\n"
" \\_/ ---- \\_/" "\n";
void bees(const char *error) {
vsetcolor(vga_color(vga_white, vga_blue));
vclear();
printf(bees_msg, error);
while (1) asm("cli;hlt");
}
|