mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 19:09:58 +08:00
17 lines
247 B
C
17 lines
247 B
C
|
|
|
|
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;
|
|
}
|
|
|