diff options
Diffstat (limited to 'apps/plugins/lib/gray_drawgraymap.c')
| -rw-r--r-- | apps/plugins/lib/gray_drawgraymap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/lib/gray_drawgraymap.c b/apps/plugins/lib/gray_drawgraymap.c index 00d4d2b..2760d5a 100644 --- a/apps/plugins/lib/gray_drawgraymap.c +++ b/apps/plugins/lib/gray_drawgraymap.c @@ -49,7 +49,6 @@ static void _writearray(unsigned char *address, const unsigned char *src, * _writepixel, see there for an explanation) for all 8 pixels and put them * on an extra "stack" */ asm ( - "sts.l pr,@-r15 \n" /* save pr (fix GCC331 build, cleaner) */ "mov #8,r3 \n" /* loop count in r3: 8 pixels */ "mov %7,r2 \n" /* copy mask */ @@ -99,7 +98,6 @@ static void _writearray(unsigned char *address, const unsigned char *src, "add #-1,r3 \n" /* decrease loop count */ "cmp/pl r3 \n" /* loop count > 0? */ "bt .wa_loop \n" /* yes: loop */ - "lds.l @r15+,pr \n" /* restore pr */ : /* outputs */ /* %0, in & out */ "+r"(_gray_random_buffer), /* %1, in & out */ "+r"(pat_ptr) @@ -111,7 +109,7 @@ static void _writearray(unsigned char *address, const unsigned char *src, /* %6 */ "r"(_graybuf->randmask), /* %7 */ "r"(mask) : /* clobbers */ - "r0", "r1", "r2", "r3", "r4", "r5", "macl" + "r0", "r1", "r2", "r3", "r4", "r5", "macl", "pr" ); end_addr = address + MULU16(_graybuf->depth, _graybuf->plane_size); |