![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
main.c@0:eead4708804f, 2011-07-03 (annotated)
- Committer:
- Ivop
- Date:
- Sun Jul 03 18:18:50 2011 +0000
- Revision:
- 0:eead4708804f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ivop | 0:eead4708804f | 1 | #include "vga640x400/vga640x400.h" |
Ivop | 0:eead4708804f | 2 | |
Ivop | 0:eead4708804f | 3 | extern unsigned char font_lin[256*16]; |
Ivop | 0:eead4708804f | 4 | |
Ivop | 0:eead4708804f | 5 | int main(int argc, char **argv) { |
Ivop | 0:eead4708804f | 6 | font = font_lin; |
Ivop | 0:eead4708804f | 7 | |
Ivop | 0:eead4708804f | 8 | // xor 1 to compensate for character order (10325476 et cetera) |
Ivop | 0:eead4708804f | 9 | // moved to userspace instead of rendering loop for obvious reasons |
Ivop | 0:eead4708804f | 10 | for (int i=0; i<2000; i++) |
Ivop | 0:eead4708804f | 11 | text_buffer[i^1] = i & 0xff; |
Ivop | 0:eead4708804f | 12 | |
Ivop | 0:eead4708804f | 13 | init_vga(); |
Ivop | 0:eead4708804f | 14 | |
Ivop | 0:eead4708804f | 15 | while(1); |
Ivop | 0:eead4708804f | 16 | } |