/* * (c) 2008-2009 Torsten Frenzel * economic rights: Technische Universität Dresden (Germany) * This file is part of TUD:OS and distributed under the terms of the * GNU Lesser General Public License 2.1. * Please see the COPYING-LGPL-2.1 file for details. */ #include static void spin_gen(void*addr,int x,int y){ unsigned char c,*p; p=addr+(x+80*y)*2; c=*p; c=(c=='|')?'/':(c=='/')?'-':(c=='-')?'\\':(c=='\\')?'|':'-'; *p=c; } /**************************************************************************** * * * l4_spin() - spinning wheel at the hercules screen, position is from * * upper left. Each call turns the wheel. * * l4_spin_vga() - the same for vga. * * * ****************************************************************************/ void l4_spin(int x,int y){ spin_gen((void*)0xb0000, x, y); } void l4_spin_vga(int x, int y){ spin_gen((void*)0xb8000, x, y); } static void spin_n_text_gen(void*addr, int x,int y, int len, const char*s){ unsigned char c,*p; int i; p=addr+(x+len+80*y)*2; c=*p; c=(c=='|')?'/':(c=='/')?'-':(c=='-')?'\\':(c=='\\')?'|':'.'; if(c=='.'){ if(s){ p=addr+(x+80*y)*2; for(i=0;i