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

diff --git a/bsv.c b/bsv.c
index 5bcf31f4fe4d348af400c22ae519f39afed2cef6..b30904a342bf007b6df924d4c92368b45696f0d1 100644 (file)
--- a/bsv.c
+++ b/bsv.c
@@ -135,7 +135,17 @@ void main(void){
                ADD     (sample, acc)
 
                mod3hi = i2>>2;
-               mod3lo = i2<<6|i1>>2;
+               MOV     (acc, i2)
+               SWAP    (acc)
+               AND     (acc, 0xf0)
+               SL      (acc)
+               SL      (acc)
+               MOV     (mod3lo, acc)
+               MOV     (acc, i1)
+               SR      (acc)
+               SR      (acc)
+               OR      (mod3lo, acc)
+
                CALL    (mod3)
                SUB     (acc, n)
                SUB     (acc, 8)
Imprint / Impressum