New kernel

This commit is contained in:
ignat99 2018-11-18 16:39:16 +02:00
parent b8e0e6ab44
commit 1dad4c06c5
4 changed files with 17 additions and 3 deletions

13
stars/stars.c Normal file
View file

@ -0,0 +1,13 @@
#include <vga.h>
#include <stdlib.h>
int main(void)
{ vga_init();
/* vga_setmode(G320x200x256); */
vga_setmode(146);
while(vga_getkey()==0) vga_setcolor(rand()&255),
vga_drawpixel(rand()%320,rand()%200);
vga_setmode(TEXT);
exit(0);
}