diff options
Diffstat (limited to 'apps/plugins/lib/gray_core.c')
-rw-r--r-- | apps/plugins/lib/gray_core.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/lib/gray_core.c b/apps/plugins/lib/gray_core.c index 7fcd3dac80..ed37f6164d 100644 --- a/apps/plugins/lib/gray_core.c +++ b/apps/plugins/lib/gray_core.c | |||
@@ -390,7 +390,7 @@ void gray_update_rect(int x, int y, int width, int height) | |||
390 | "mov.l @%[patp]+,r7\n" | 390 | "mov.l @%[patp]+,r7\n" |
391 | "mov.l @%[patp]+,r8\n" | 391 | "mov.l @%[patp]+,r8\n" |
392 | "mov.l @%[patp]+,r9\n" | 392 | "mov.l @%[patp]+,r9\n" |
393 | "mov.l @%[patp],%[rx] \n" | 393 | "mov.l @%[patp],r10\n" |
394 | 394 | ||
395 | "tst %[mask],%[mask] \n" /* nothing to keep? */ | 395 | "tst %[mask],%[mask] \n" /* nothing to keep? */ |
396 | "bt .ur_sloop \n" /* yes: jump to short loop */ | 396 | "bt .ur_sloop \n" /* yes: jump to short loop */ |
@@ -410,11 +410,11 @@ void gray_update_rect(int x, int y, int width, int height) | |||
410 | "rotcl r0 \n" | 410 | "rotcl r0 \n" |
411 | "shlr r9 \n" | 411 | "shlr r9 \n" |
412 | "rotcl r0 \n" | 412 | "rotcl r0 \n" |
413 | "shlr %[rx] \n" | 413 | "shlr r10 \n" |
414 | "mov.b @%[addr],%[patp]\n" /* read old value */ | 414 | "mov.b @%[addr],%[rx] \n" /* read old value */ |
415 | "rotcl r0 \n" | 415 | "rotcl r0 \n" |
416 | "and %[mask],%[patp] \n" /* mask out unneeded bits */ | 416 | "and %[mask],%[rx] \n" /* mask out unneeded bits */ |
417 | "or %[patp],r0 \n" /* set new bits */ | 417 | "or %[rx],r0 \n" /* set new bits */ |
418 | "mov.b r0,@%[addr] \n" /* store value to bitplane */ | 418 | "mov.b r0,@%[addr] \n" /* store value to bitplane */ |
419 | "add %[psiz],%[addr] \n" /* advance to next bitplane */ | 419 | "add %[psiz],%[addr] \n" /* advance to next bitplane */ |
420 | "cmp/hi %[addr],%[end] \n" /* last bitplane done? */ | 420 | "cmp/hi %[addr],%[end] \n" /* last bitplane done? */ |
@@ -438,7 +438,7 @@ void gray_update_rect(int x, int y, int width, int height) | |||
438 | "rotcl r0 \n" | 438 | "rotcl r0 \n" |
439 | "shlr r9 \n" | 439 | "shlr r9 \n" |
440 | "rotcl r0 \n" | 440 | "rotcl r0 \n" |
441 | "shlr %[rx] \n" | 441 | "shlr r10 \n" |
442 | "rotcl r0 \n" | 442 | "rotcl r0 \n" |
443 | "mov.b r0,@%[addr] \n" /* store byte to bitplane */ | 443 | "mov.b r0,@%[addr] \n" /* store byte to bitplane */ |
444 | "add %[psiz],%[addr] \n" /* advance to next bitplane */ | 444 | "add %[psiz],%[addr] \n" /* advance to next bitplane */ |
@@ -455,7 +455,7 @@ void gray_update_rect(int x, int y, int width, int height) | |||
455 | [end] "r"(end), | 455 | [end] "r"(end), |
456 | [patp]"[rx]"(pat_ptr) | 456 | [patp]"[rx]"(pat_ptr) |
457 | : /* clobbers */ | 457 | : /* clobbers */ |
458 | "r0", "r1", "r2", "r3", "r6", "r7", "r8", "r9" | 458 | "r0", "r1", "r2", "r3", "r6", "r7", "r8", "r9", "r10" |
459 | ); | 459 | ); |
460 | } | 460 | } |
461 | #elif defined(CPU_COLDFIRE) && (LCD_DEPTH == 2) | 461 | #elif defined(CPU_COLDFIRE) && (LCD_DEPTH == 2) |