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

diff --git a/foo.c b/foo.c
index c2f21665a61a18a0352f7d952a90285d74931674..4b7a4c8e0a067d1c5c3ebfbcdb2fd9c02d2fdd74 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -2,7 +2,10 @@
 #include "fakeasm.h"
 typedef unsigned char u8;
 
-u8* data = "Qj}6jQ6%BY}6YB6%";
+u8 data[] = {   
+       0x84, 0x9d, 0xb0, 0x69, 0x9d, 0x84, 0x69, 0x58,
+       0x75, 0x8c, 0xb0, 0x69, 0x8c, 0x75, 0x69, 0x58
+};
 u8 g(int i, u8 x, u8 t, u8 o) {
        u8 tmp;
        ANDI    (t, 0x07)
@@ -13,7 +16,6 @@ u8 g(int i, u8 x, u8 t, u8 o) {
        SUBI    (t, -8)
        skip:
        t = data[t];
-       SUBI    (t, -51)
        t = (i*t) >> o;
        AND     (t, x)
        ANDI    (t, 3)
Imprint / Impressum