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