Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libc / sys / h8300hms / write.S
blobe416b1521be677b529c79f41a9568345b49c40f1
1 ;ssize_t write(int fd, const void *buf, size_t count);
2 ;Integer arguments have to be zero extended.
4 #include "setarch.h"
6         .section .text
7         .align 2
8         .global __write
9 __write:
10 #if defined(__H8300H__) || defined(__H8300S__) || defined (__H8300SX__)
11 #if __INT_MAX__ == 32767
12         extu.l  er0
13 #endif
14 #endif
15         jsr @@0xc7
16         rts
17         .end