source: trunk/libs/newlib/src/newlib/libc/machine/h8300/h8sx_strcpy.S @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 295 bytes
Line 
1; This file exists to provide a movsd implementation of strcpy().
2; Continue to use the generic version for targets other than h8sx.
3#ifdef __H8300SX__
4#include "setarch.h"
5
6        .global _strcpy
7_strcpy:
8        stm.l   er4-er6,@-er7
9        mov.l   er0,er6
10        mov.l   er1,er5
111:      movsd   2f
12        bra     1b
132:      rts/l   er4-er6
14#endif
Note: See TracBrowser for help on using the repository browser.