new version
authorTobias Girstmair <t@thi3nkpad.lan>
Tue, 13 Nov 2018 17:50:14 +0000 (18:50 +0100)
committerTobias Girstmair <t@thi3nkpad.lan>
Tue, 13 Nov 2018 17:50:14 +0000 (18:50 +0100)
foo.c

diff --git a/foo.c b/foo.c
index fbe306c..a9b356b 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -198,7 +198,17 @@ int main(void) {
                LSR     (tmp)
                OR      (Ml, tmp)
                #undef tmp
-               Mh = i3<<6 | i2>>2;
+               MOV     (Mh, i3)
+               SWAP    (Mh)
+               ANDI    (Mh, 0xf0)
+               LSL     (Mh)
+               LSL     (Mh)
+               #define tmp _
+               MOV     (tmp, i2)
+               LSR     (tmp)
+               LSR     (tmp)
+               OR      (Mh, tmp)
+               #undef tmp
                RCALL   mod3();
                SUB     (t, n)
                NEG     (t)
Imprint / Impressum