summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/gray_draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/gray_draw.c')
-rw-r--r--apps/plugins/lib/gray_draw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/plugins/lib/gray_draw.c b/apps/plugins/lib/gray_draw.c
index bd8ea4f1ce..e501618e8d 100644
--- a/apps/plugins/lib/gray_draw.c
+++ b/apps/plugins/lib/gray_draw.c
@@ -1303,14 +1303,13 @@ static void _writearray(unsigned char *address, const unsigned char *src,
1303 "bf .wa_skip \n" /* skip this pixel */ 1303 "bf .wa_skip \n" /* skip this pixel */
1304 1304
1305 "mov.b @%[src], r0 \n" /* load src byte */ 1305 "mov.b @%[src], r0 \n" /* load src byte */
1306 "mov #75, r1 \n"
1306 "extu.b r0, r0 \n" /* extend unsigned */ 1307 "extu.b r0, r0 \n" /* extend unsigned */
1307 "mov.b @(r0,%[trns]), r0 \n" /* idxtable into pattern index */ 1308 "mov.b @(r0,%[trns]), r0 \n" /* idxtable into pattern index */
1309 "mulu r1, %[rnd] \n" /* multiply by 75 */
1308 "extu.b r0, r0 \n" /* extend unsigned */ 1310 "extu.b r0, r0 \n" /* extend unsigned */
1309 "shll2 r0 \n" 1311 "shll2 r0 \n"
1310 "mov.l @(r0,%[bpat]), r4 \n" /* r4 = bitpattern[byte]; */ 1312 "mov.l @(r0,%[bpat]), r4 \n" /* r4 = bitpattern[byte]; */
1311
1312 "mov #75, r0 \n"
1313 "mulu r0, %[rnd] \n" /* multiply by 75 */
1314 "sts macl, %[rnd] \n" 1313 "sts macl, %[rnd] \n"
1315 "add #74, %[rnd] \n" /* add another 74 */ 1314 "add #74, %[rnd] \n" /* add another 74 */
1316 /* Since the lower bits are not very random: */ 1315 /* Since the lower bits are not very random: */