rotor.c

Go to the documentation of this file.
00001 /* tarea.c */
00002 #include "stdarg.h"
00003 #include "../include/routix.h"
00004 #include "../../include/debug.h"
00005 
00006 int main (void) 
00007 {
00008         
00009  unsigned int i, j;
00010  unsigned char *ptr = (unsigned char* ) 0xb8000 + 76*2;
00011 
00012  char simbolos[] = { '|', '/', '-', '\\' };
00013 
00014  for (j=0 ; j<200 ; j++) {
00015         
00016    for ( i=0; i<sizeof(simbolos); i++) {
00017      *ptr = simbolos[i];
00018      *(ptr+1) = 0x6f;
00019      usleep(125000);
00020    }
00021  }
00022      usleep(8250000);
00023      *(ptr+1) = 0x00;
00024 
00025 }

Generated on Sun May 30 18:38:35 2004 for Routix OS by doxygen 1.3.6