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

h8sx_strcpy.S « h8300 « machine « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: db84771a02c5565df92adbe9475caae10d1bd3fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; This file exists to provide a movsd implementation of strcpy().
; Continue to use the generic version for targets other than h8sx.
#ifdef __H8300SX__
#include "setarch.h"

	.global _strcpy
_strcpy:
	stm.l	er4-er6,@-er7
	mov.l	er0,er6
	mov.l	er1,er5
1:	movsd	2f
	bra	1b
2:	rts/l	er4-er6
#endif