File: testspeed.c

package info (click to toggle)
chdrv 1.0.13-0.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,204 kB
  • ctags: 1,069
  • sloc: ansic: 8,972; perl: 412; asm: 234; makefile: 195; sh: 36
file content (21 lines) | stat: -rw-r--r-- 282 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
main()
{
  int i;
  unsigned char b[2];
  b[0] = 0xa4;b[1] = 0x40;
  for(i=1;i<13094;i++)
  {
    if ((i % 40) == 0)
	write(1,"\n",1);
    write(1,b,2);
    b[1]++;
    if (b[1] == 0x7f)
	b[1] = 0xa0;
    else if (b[1] == 0xff)
    {
      b[1] = 0x40;
      b[0]++;
    }
  }
}