diff options
Diffstat (limited to 'apps/plugins/lib')
| -rw-r--r-- | apps/plugins/lib/grey_coldfire.S | 10 | ||||
| -rw-r--r-- | apps/plugins/lib/grey_sh.S | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/lib/grey_coldfire.S b/apps/plugins/lib/grey_coldfire.S index db9b11b..39df087 100644 --- a/apps/plugins/lib/grey_coldfire.S +++ b/apps/plugins/lib/grey_coldfire.S @@ -97,10 +97,11 @@ _grey_line1: subq.l #4, %d2 bhs.s .p4_loop + /* No need to correct the count, we're only testing bits from now on. */ + .p4_end: - addq.l #4, %d2 - cmp.l #2, %d2 - blo.s .p2_t_end + btst.l #1, %d2 + beq.s .p2_t_end move.w (%a1)+, %d1 move.w %d1, %d0 @@ -110,10 +111,9 @@ _grey_line1: move.b %d1, %d0 move.b (%d0.l, %a2), (%a0) addq.l #4, %a0 - subq.l #2, %d2 .p2_t_end: - tst.l %d2 + btst.l #0, %d2 beq.s .p1_t_end move.b (%a1)+, %d0 diff --git a/apps/plugins/lib/grey_sh.S b/apps/plugins/lib/grey_sh.S index c59c09e..f77d5b2 100644 --- a/apps/plugins/lib/grey_sh.S +++ b/apps/plugins/lib/grey_sh.S @@ -99,8 +99,8 @@ __grey_line1: add #16, r5 bt .p4_loop - sub r6, r4 - + /* No need to correct the count, we're only testing bits from now on. */ + .p4_end: mov #2, r0 tst r0, r4 |