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

diff --git a/bsv.c b/bsv.c
index b30904a342bf007b6df924d4c92368b45696f0d1..0bbe96c6c416c0e5c860870a6a99912a3686c1e6 100644 (file)
--- a/bsv.c
+++ b/bsv.c
@@ -134,8 +134,10 @@ void main(void){
                AND     (acc, 3)
                ADD     (sample, acc)
 
-               mod3hi = i2>>2;
                MOV     (acc, i2)
+               MOV     (mod3hi, acc)
+               SR      (mod3hi)
+               SR      (mod3hi)
                SWAP    (acc)
                AND     (acc, 0xf0)
                SL      (acc)
@@ -145,7 +147,6 @@ void main(void){
                SR      (acc)
                SR      (acc)
                OR      (mod3lo, acc)
-
                CALL    (mod3)
                SUB     (acc, n)
                SUB     (acc, 8)
Imprint / Impressum