new version
authorTobias Girstmair <tobi@isticktoit.net>
Thu, 4 Mar 2021 12:26:26 +0000 (13:26 +0100)
committerTobias Girstmair <tobi@isticktoit.net>
Thu, 4 Mar 2021 12:26:26 +0000 (13:26 +0100)
bsv.c

diff --git a/bsv.c b/bsv.c
index a0a1caa782a566565f644d88cfdbb7c6dba8496b..81095016fd2dfa1a950349d8d785ce53e4353b96 100644 (file)
--- a/bsv.c
+++ b/bsv.c
@@ -72,26 +72,28 @@ void main(void){
                // shift-divide by six
                // note: i2 is max 0x78; so acc will <= 20.
 
-                acc >>= 1;
-                acc += i2;
+                SR     (acc)
+               ADD     (acc, i2)
 
-                acc >>= 1;
-                acc += 0;
+               SR      (acc)
+                //ADD acc, 0
 
-                acc >>= 1;
-                acc += i2;
+                SR     (acc)
+               ADD     (acc, i2)
 
-                acc >>= 1;
-                acc += 0;
+               SR      (acc)
+                //ADD acc, 0
 
-                acc >>= 1;
-                acc += i2;
+                SR     (acc)
+               ADD     (acc, i2)
 
-                acc >>= 1;
-                acc += 0;
+               SR      (acc)
+                //ADD acc, 0
 
-                acc >>= 1;
-                acc >>= 1;
+               SR      (acc)
+                //ADD acc, 0
+               SR      (acc)
+                //ADD acc, 0
 
                // end divide by six
                AND     (acc, tmp_1) // acc restored from tmp_1
Imprint / Impressum