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

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-08-31 02:17:17 +0400
committerJeff Johnston <jjohnstn@redhat.com>2000-08-31 02:17:17 +0400
commit4ba9aab7798ea22fd5b5a9e33bef656a9b5e07e9 (patch)
treedcc6dfcc439a980c700302e44d3f6590812b482a /newlib/libc/sys/h8300hms
parentdb7acc382fd5b2c5e58c0413028a367574e5c8b8 (diff)
2000-08-30 Kazu Hirata <kazu@hxi.com>
* libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
Diffstat (limited to 'newlib/libc/sys/h8300hms')
-rw-r--r--newlib/libc/sys/h8300hms/crt0.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/sys/h8300hms/crt0.S b/newlib/libc/sys/h8300hms/crt0.S
index 94a4e2948..13d907508 100644
--- a/newlib/libc/sys/h8300hms/crt0.S
+++ b/newlib/libc/sys/h8300hms/crt0.S
@@ -8,7 +8,7 @@ _start:
mov.w #_stack,sp
mov.w #_edata,r0
mov.w #_end,r1
- mov.w #0,r2
+ sub.w r2,r2
.loop: mov.w r2,@r0
adds #2,r0
cmp r1,r0
@@ -31,7 +31,7 @@ _start:
mov.l #_stack,sp
mov.l #_edata,er0
mov.l #_end,er1
- mov.w #0,r2 ; not sure about alignment requirements
+ sub.w r2,r2 ; not sure about alignment requirements
.loop: mov.w r2,@er0 ; playing it safe for now
adds #2,er0
cmp.l er1,er0
@@ -54,7 +54,7 @@ _start:
mov.l #_stack,sp
mov.l #_edata,er0
mov.l #_end,er1
- mov.w #0,r2 ; not sure about alignment requirements
+ sub.w r2,r2 ; not sure about alignment requirements
.loop: mov.w r2,@er0 ; playing it safe for now
adds #2,er0
cmp.l er1,er0