From 606c80268b9d48ca4ec988f34d49cf96a6e041e4 Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Fri, 21 Apr 2017 20:11:18 -0400 Subject: [PATCH] tmp variables can be flagged as output only - this saves a few bytes --- src/Sprites.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Sprites.cpp b/src/Sprites.cpp index e8a3439..545a8a9 100644 --- a/src/Sprites.cpp +++ b/src/Sprites.cpp @@ -334,9 +334,9 @@ void Sprites::drawBitmap(int16_t x, int16_t y, : [xi] "+&r" (xi), [yi] "+&r" (yi), [sRow] "+&d" (sRow), // CPI requires an upper register - [data] "+&r" (data), - [mask_data] "+&r" (mask_data), - [bitmap_data] "+&r" (bitmap_data) + [data] "=&r" (data), + [mask_data] "=&r" (mask_data), + [bitmap_data] "=&r" (bitmap_data) : [x_count] "r" (rendered_width), [y_count] "r" (loop_h),