View Single Post
Old 08 December 2018, 00:02   #95
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
Quote:
Originally Posted by phx View Post
I like doing strlen() with dbeq. It also takes advantage of the 68010 DBcc-cache.
Code:
        moveq   #-1,d0
.1:     tst.b   (a0)+
        dbeq    d0,.1
        not.l   d0
EDIT: Oh, just noticed a0 should not be modified. Nevermind.
Yes, my first thought was for dbeq then i realized i had to keep a0
ross is offline  
 
Page generated in 0.06076 seconds with 11 queries