GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


strcmp 680x0 by DELTRON
1
2
3
4
5
6
7
8
9
10
11
12
13
 
// Compare two strings 680x0 assembly - DELTRON 6/23/2004

         moveq #0,d7
         moveq #0,d0

         lea string1,a0
         lea string2,a1

loop:    cmp (a0)+,(a1)+
         bne noteq
         dbra d7,loop
equal:   moveq #1,d0
noteq:   rts