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

diff --git a/foo.c b/foo.c
index 9e23a5b6c8e0f47a7b0e97291dde39c7af733a1f..c2f21665a61a18a0352f7d952a90285d74931674 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -8,7 +8,10 @@ u8 g(int i, u8 x, u8 t, u8 o) {
        ANDI    (t, 0x07)
        tmp = i >> 16;
        ANDI    (tmp, 3)
-       if (tmp) t+=8;
+       TST     (tmp)
+       BREQ    (skip)
+       SUBI    (t, -8)
+       skip:
        t = data[t];
        SUBI    (t, -51)
        t = (i*t) >> o;
Imprint / Impressum