summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/gray_drawgraymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/gray_drawgraymap.c')
-rw-r--r--apps/plugins/lib/gray_drawgraymap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/lib/gray_drawgraymap.c b/apps/plugins/lib/gray_drawgraymap.c
index 00d4d2b270..2760d5a96c 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,
49 * _writepixel, see there for an explanation) for all 8 pixels and put them 49 * _writepixel, see there for an explanation) for all 8 pixels and put them
50 * on an extra "stack" */ 50 * on an extra "stack" */
51 asm ( 51 asm (
52 "sts.l pr,@-r15 \n" /* save pr (fix GCC331 build, cleaner) */
53 "mov #8,r3 \n" /* loop count in r3: 8 pixels */ 52 "mov #8,r3 \n" /* loop count in r3: 8 pixels */
54 "mov %7,r2 \n" /* copy mask */ 53 "mov %7,r2 \n" /* copy mask */
55 54
@@ -99,7 +98,6 @@ static void _writearray(unsigned char *address, const unsigned char *src,
99 "add #-1,r3 \n" /* decrease loop count */ 98 "add #-1,r3 \n" /* decrease loop count */
100 "cmp/pl r3 \n" /* loop count > 0? */ 99 "cmp/pl r3 \n" /* loop count > 0? */
101 "bt .wa_loop \n" /* yes: loop */ 100 "bt .wa_loop \n" /* yes: loop */
102 "lds.l @r15+,pr \n" /* restore pr */
103 : /* outputs */ 101 : /* outputs */
104 /* %0, in & out */ "+r"(_gray_random_buffer), 102 /* %0, in & out */ "+r"(_gray_random_buffer),
105 /* %1, in & out */ "+r"(pat_ptr) 103 /* %1, in & out */ "+r"(pat_ptr)
@@ -111,7 +109,7 @@ static void _writearray(unsigned char *address, const unsigned char *src,
111 /* %6 */ "r"(_graybuf->randmask), 109 /* %6 */ "r"(_graybuf->randmask),
112 /* %7 */ "r"(mask) 110 /* %7 */ "r"(mask)
113 : /* clobbers */ 111 : /* clobbers */
114 "r0", "r1", "r2", "r3", "r4", "r5", "macl" 112 "r0", "r1", "r2", "r3", "r4", "r5", "macl", "pr"
115 ); 113 );
116 114
117 end_addr = address + MULU16(_graybuf->depth, _graybuf->plane_size); 115 end_addr = address + MULU16(_graybuf->depth, _graybuf->plane_size);