home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
sysutl
/
busy1.arc
/
BUSY.C
next >
Wrap
C/C++ Source or Header
|
1989-10-26
|
811b
|
30 lines
/*
** This program demonstrates several "busy indicators", and also
** serves as a example of using the BIOS clock tick timer at 40:40
** Written in 1989 by Otto Makela, Jyvaskyla, Finland.
** Permission is granted to copy this code freely, though a small
** mention of the source would be appreciated... :-)
*/
main() {
register int i,j;
const far unsigned char *tick=(far unsigned char *)0x00400040;
scr_printf(" two four eight\n");
while(scr_poll()==-1)
if((i=*tick>>2)!=j)
scr_printf(
" %c %c %c %c %c %c %c %c %c %c\r",
"▄▀" [i&1],
"▌▐" [i&1],
"/|\\-" [i&3],
" -÷:" [i&3],
"-=≡=" [i&3],
"\36\20\37\21" [i&3],
"▄▐▀▌" [i&3],
"║╗═╔║╚═╝" [i&7],
" ░▒▓█▓▒░" [i&7],
" ·∙\11O\11∙·" [i&7],
j=i);
}