summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/h8300/reg_memset.S
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/h8300/reg_memset.S')
-rw-r--r--newlib/libc/machine/h8300/reg_memset.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/machine/h8300/reg_memset.S b/newlib/libc/machine/h8300/reg_memset.S
index 79cccab38..ce4f5ca66 100644
--- a/newlib/libc/machine/h8300/reg_memset.S
+++ b/newlib/libc/machine/h8300/reg_memset.S
@@ -14,8 +14,13 @@ ___reg_memset:
memloop:
mov.b A1L,@A0P
+#ifdef __NORMAL_MODE__
+ add #1,A0P
+ sub #1,A2P
+#else
adds #1,A0P
subs #1,A2P
+#endif
MOVP A2P,A2P
bne memloop