new version
authorTobias Girstmair <t@thi3nkpad.lan>
Mon, 12 Nov 2018 23:59:50 +0000 (00:59 +0100)
committerTobias Girstmair <t@thi3nkpad.lan>
Mon, 12 Nov 2018 23:59:50 +0000 (00:59 +0100)
foo.c

diff --git a/foo.c b/foo.c
index f8703c351e36b1ba4f33e72f8617ab2bb286a625..4caddeafebf85fbbbaa77418b9b04b33dcd090bd 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -41,7 +41,9 @@ int main(void) {
                LSL     (n)
                #define tmp acc
                MOV     (tmp, i1)
-               tmp >>= 6;
+               SWAP    (tmp)
+               ANDI    (tmp, 0x0f)
+               tmp >>= 2;
                OR      (n, tmp)
                #undef tmp
                s = (i3<<7 | i2>>1);
Imprint / Impressum