4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 19:09:58 +08:00
Jeff Johnston b8f7ea5ccb 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
* libc/machine/h8300/setarch.h: New.
        * libc/machine/h8300/memcpy.S: Use it.
        * libc/machine/h8300/memset.S: Likewise.
        * libc/machine/h8300/reg_memcpy.S: Likewise.
        * libc/machine/h8300/reg_memset.S: Likewise.
        * libc/machine/h8300/setjmp.S: Likewise.
        * libc/machine/h8300/strcmp.S: Likewise.
2003-06-24 19:43:58 +00:00

26 lines
259 B
ArmAsm

#include "setarch.h"
#include "defines.h"
; dst A0
; src A1
; len A2
.global ___reg_memset
___reg_memset:
MOVP A0P,A3P
MOVP A2P,A2P
beq noset
memloop:
mov.b A1L,@A0P
adds #1,A0P
subs #1,A2P
MOVP A2P,A2P
bne memloop
noset:
MOVP A3P,A0P
rts