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

diff --git a/bsv.c b/bsv.c
index 21a9414427158418fcbe48bd4f6b2e3a33353fc1..33af069d58b9a2f2ef85a068898b76eef269c8a3 100644 (file)
--- a/bsv.c
+++ b/bsv.c
@@ -96,7 +96,16 @@ void main(void){
                ADD     (sample, acc)
 
                mod3hi = i2>>3;
-               mod3lo = i2<<5|i1>>3;
+               MOV(acc, i2)
+               SWAP(acc)
+               AND(acc, 0xf0)
+               SL(acc)
+               MOV(mod3lo, acc)
+               MOV(acc, i1)
+               SR(acc)
+               SR(acc)
+               SR(acc)
+               OR(mod3lo, acc)
                CALL    (mod3)
                ADD     (acc, n)
                CALL    (g)
Imprint / Impressum