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

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-02-25 23:36:29 +0300
committerJeff Johnston <jjohnstn@redhat.com>2003-02-25 23:36:29 +0300
commit41a639dea811272c66ed71eb9ca6c233050f57b3 (patch)
treeeadb76e7fe1e3fe6baed9ff78d86ee83eae163f2 /newlib/libc/sys/h8300hms/write.S
parent5ffa5aaa5c9f7151ffd0fc4d6eae6f48cab29427 (diff)
2002-02-25 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* libc/sys/h8300hms/Makefile.am: Add support for new files. * libc/sys/h8300hms/Makefile.in: Regenerated. * libc/sys/h8300hms/close.S: New file. * libc/sys/h8300hms/fstat.S: Ditto. * libc/sys/h8300hms/lseek.S: Ditto. * libc/sys/h8300hms/open.S: Ditto. * libc/sys/h8300hms/stat.S: Ditto. * libc/sys/h8300hms/read.S: New file to replace read.c. * libc/sys/h8300hms/read.c: Removed. * libc/sys/h8300hms/syscalls.c: Removed functions _open, _lseek, _close, _stat, _fstat. * libc/sys/h8300hms/write.S: New file to replace write.c. * libc/sys/h8300hms/write.c: Removed.
Diffstat (limited to 'newlib/libc/sys/h8300hms/write.S')
-rw-r--r--newlib/libc/sys/h8300hms/write.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/newlib/libc/sys/h8300hms/write.S b/newlib/libc/sys/h8300hms/write.S
new file mode 100644
index 000000000..ccd06c5b7
--- /dev/null
+++ b/newlib/libc/sys/h8300hms/write.S
@@ -0,0 +1,23 @@
+;ssize_t write(int fd, const void *buf, size_t count);
+;Integer arguments have to be zero extended.
+
+#if defined(__H8300H__)
+ .h8300h
+#endif
+
+#if defined(__H8300S__)
+ .h8300s
+#endif
+
+ .section .text
+ .align 2
+ .global __write
+__write:
+#if defined(__H8300H__) || defined(__H8300S__)
+#if __INT_MAX__ == 32767
+ extu.l er0
+#endif
+#endif
+ jsr @@0xc7
+ rts
+ .end