From a7a7abba6e5ca549ff78b084fc01db55074a544f Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Tue, 13 Nov 2018 03:12:09 +0100 Subject: [PATCH] new version --- foo.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/foo.c b/foo.c index fdb92fc..dd9a440 100644 --- 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) -- 2.39.3