projects
/
calu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d085ee
)
sum: downto 64
author
Martin Perner
<martin@perner.cc>
Sun, 16 Jan 2011 15:23:15 +0000
(16:23 +0100)
committer
Martin Perner
<martin@perner.cc>
Sun, 16 Jan 2011 15:23:15 +0000
(16:23 +0100)
progs/sum.s
patch
|
blob
|
history
diff --git
a/progs/sum.s
b/progs/sum.s
index c03df084ea3f8ce97ce947940f4c482c3de535c1..1a433518c982b3ffc220f245704e69cc8191dfe6 100644
(file)
--- a/
progs/sum.s
+++ b/
progs/sum.s
@@
-84,6
+84,9
@@
sum:
andx r1, 0x3
+ cmpi r1, 0
+ breq+ go_loop
+
cmpi r1, 1
addideq r3, r3, 3
subideq r2, r2, 12
@@
-99,6
+102,7
@@
sum:
subideq r2, r2, 4
breq- loop3
+go_loop:
addi r3, r3, 4
loop:
subi r3, r3, 4