diff options
Diffstat (limited to 'newlib/libc/machine/h8300/reg_memcpy.S')
-rw-r--r-- | newlib/libc/machine/h8300/reg_memcpy.S | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/newlib/libc/machine/h8300/reg_memcpy.S b/newlib/libc/machine/h8300/reg_memcpy.S index ea4aff0f6..5402fc46d 100644 --- a/newlib/libc/machine/h8300/reg_memcpy.S +++ b/newlib/libc/machine/h8300/reg_memcpy.S @@ -14,8 +14,12 @@ ___reg_memcpy: CMPP A0P,A3P ; see if anything to do beq quit - -loop: subs #1,A1P ; point to byte +loop: +#ifdef __NORMAL_MODE__ + sub #1,A1P ; point to byte +#else + subs #1,A1P ; point to byte +#endif mov.b @A1P,A2L ; get byte mov.b A2L,@-A0P ; save byte CMPP A0P,A3P ; at the front again ? |