From 79ce25e986d35baab922b66a80dd72ca01523039 Mon Sep 17 00:00:00 2001 From: hackbard Date: Thu, 15 May 2003 22:16:50 +0000 Subject: [PATCH] (a-b)/2+b=(a+b)/2 -> ein punkt mehr ;) --- loesung4-2.new.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/loesung4-2.new.s b/loesung4-2.new.s index 8022bc1..e77dcc7 100644 --- a/loesung4-2.new.s +++ b/loesung4-2.new.s @@ -22,9 +22,8 @@ loop: sub r5,r3,r2 sub r5,r5,1 beqz r5,end -sub r4,r3,r2 -srli r4,r4,1 -add r4,r4,r2 ; fast mitte +add r4,r3,r2 +srli r4,r4,1 ; fast mitte multu r6,r4,r4 sgt r7,r6,r1 beqz r7,incleft -- 2.39.2