Ivo van Poorten
/
vga640x400_example
Diff: main.c
- Revision:
- 0:043bbfc55ea1
diff -r 000000000000 -r 043bbfc55ea1 main.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.c Sun Jul 03 18:22:30 2011 +0000 @@ -0,0 +1,16 @@ +#include "vga640x400/vga640x400.h" + +extern unsigned char font_lin[256*16]; + +int main(int argc, char **argv) { + font = font_lin; + + // xor 1 to compensate for character order (10325476 et cetera) + // moved to userspace instead of rendering loop for obvious reasons + for (int i=0; i<2000; i++) + text_buffer[i^1] = i & 0xff; + + init_vga(); + + while(1); +} \ No newline at end of file