Use local label for loop in fillScreen() assembly

To fix error: symbol loopto is already defined with -O3 optimization.
This commit is contained in:
Blake W. Ford 2019-02-12 01:26:32 -06:00 committed by Scott Allen
parent 974f5298ee
commit 6ded14fb0e
1 changed files with 2 additions and 2 deletions

View File

@ -678,7 +678,7 @@ void Arduboy2Base::fillScreen(uint8_t color)
"ldi %[color], 0xFF\n"
// counter = 0
"clr __tmp_reg__\n"
"loopto:\n"
"1:\n"
// (4x) push zero into screen buffer,
// then increment buffer position
"st Z+, %[color]\n"
@ -689,7 +689,7 @@ void Arduboy2Base::fillScreen(uint8_t color)
"inc __tmp_reg__\n"
// repeat for 256 loops
// (until counter rolls over back to 0)
"brne loopto\n"
"brne 1b\n"
: [color] "+d" (color),
"+z" (bPtr)
: