Ivo van Poorten
/
vga640x400_example
Embed:
(wiki syntax)
Show/hide line numbers
main.c
00001 #include "vga640x400/vga640x400.h" 00002 00003 extern unsigned char font_lin[256*16]; 00004 00005 int main(int argc, char **argv) { 00006 font = font_lin; 00007 00008 // xor 1 to compensate for character order (10325476 et cetera) 00009 // moved to userspace instead of rendering loop for obvious reasons 00010 for (int i=0; i<2000; i++) 00011 text_buffer[i^1] = i & 0xff; 00012 00013 init_vga(); 00014 00015 while(1); 00016 }
Generated on Fri Jul 15 2022 08:58:09 by 1.7.2