Welcome to mirror list, hosted at ThFree Co, Russian Federation.

write.c « h8300hms « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 22fc63d57e9afe4a985ea55161a35bd6f4a486a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


int _write(file, ptr, len)
     int file;
     char *ptr;
     int len;
{
  int todo;
  
  for (todo = 0; todo < len; todo++) 
    {
      asm("mov.b #0,r1l\n mov.b %0l,r2l\njsr @@0xc4"   :  : "r" (*ptr++)  : "r1", "r2");
    }
  return len;
}