From 9537ca4fc66cb8a8b8061669b0e7a001f4f8ad7f Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Wed, 10 Mar 2010 01:23:05 +0100 Subject: [PATCH] asmb: 'mathematischer' ;) --- asma/asma.s | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/asma/asma.s b/asma/asma.s index 9ea72d3..c4f46f8 100644 --- a/asma/asma.s +++ b/asma/asma.s @@ -20,15 +20,12 @@ constc0: .type asma, @function asma: .LFB2: - // folgendes kann umgeformt werden: - // (mathematisch ned ganz korrekt) + // folgendes kann umgeformt werden (max_t = 127) // X = 'Z' + 1 + min_t - 'A' > c + min_t - 'A' ? 0xff : 0 - // X = -102 > c + 63 ? 0xff : 0 - // X = c + 63 < -102 ? 0xff : 0 - // X = -(c + 63) > 102 ? 0xff : 0 - // X = -63 - c > 102 ? 0xff : 0 - // X = -63 - c - 1 > 102 - 1 ? 0xff : 0 - // X = -64 - c > 101 ? 0xff : 0 + // X = -c + max_t + 'A' > - 'Z' -1 + max_t + 'A' ? 0xff : 0 + // X = -c + 127 + 65 > - 90 - 1 + 127 + 65 ? 0xff : 0 + // X = -c - 64 > 101 ? 0xff : 0 + // X = -64 - c > 101 ? 0xff : 0 // ... // 101 = 0x65 // -64 = 0xc0 -- 2.25.1