new version
authorTobias Girstmair <t@thi3nkpad.lan>
Tue, 13 Nov 2018 02:12:09 +0000 (03:12 +0100)
committerTobias Girstmair <t@thi3nkpad.lan>
Tue, 13 Nov 2018 02:12:09 +0000 (03:12 +0100)
foo.c

diff --git a/foo.c b/foo.c
index fdb92fcbdd12c2b5ca3a59378619729fd212da4a..dd9a440afc3107815eee2b6a9b490909389b6150 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -86,10 +86,7 @@ int main(void) {
                MOV     (x, s)
                INC     (x)
                #define tmp o
-               //NOTE: we only need 1 bit of the upper byte. instead of using a u16 and LSR'ing, 
-               //we can use a u8 for sum and use ROR (which shifts the carry in)
-               CLR     (tmp)
-               ADD     (tmp, x)
+               MOV     (tmp, x)
                ROR     (tmp)
                 //nop
                LSR     (tmp)
Imprint / Impressum