|
Last change
on this file since 444 was
444,
checked in by satin@…, 8 years ago
|
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
|
File size:
330 bytes
|
| Line | |
|---|
| 1 | ;off_t lseek(int fildes, off_t offset, int whence); |
|---|
| 2 | ;Integer arguments have to be zero extended. |
|---|
| 3 | |
|---|
| 4 | #include "setarch.h" |
|---|
| 5 | |
|---|
| 6 | .section .text |
|---|
| 7 | .align 2 |
|---|
| 8 | .global __lseek |
|---|
| 9 | __lseek: |
|---|
| 10 | #if defined(__H8300H__) || defined(__H8300S__) || defined (__H8300SX__) |
|---|
| 11 | #if __INT_MAX__ == 32767 |
|---|
| 12 | extu.l er0 |
|---|
| 13 | extu.l er2 |
|---|
| 14 | #endif |
|---|
| 15 | #endif |
|---|
| 16 | jsr @@0xc8 |
|---|
| 17 | rts |
|---|
| 18 | .end |
|---|
Note: See
TracBrowser
for help on using the repository browser.