New kernel
This commit is contained in:
parent
b8e0e6ab44
commit
1dad4c06c5
4 changed files with 17 additions and 3 deletions
13
stars/stars.c
Normal file
13
stars/stars.c
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue