A86: Re: comparing strings
[Prev][Next][Index][Thread]
A86: Re: comparing strings
this is the routine i made for my msgbook program, dunno if there is any
better optimization because i think it is pretty damn small :)
ld hl,STRING1
ld a,(hl)
ld hl,STRING2
cp (hl)
jr nz,notequal
ld b,$07
authloop1:
push bc
ld hl,STRING1
authloop2:
inc hl
djnz authloop2
ld a,(hl)
pop bc
push bc
ld hl,STRING2
authloop3:
inc hl
djnz authloop3
pop bc
cp (hl)
jr nz,notequal
djnz authloop1
-----Original Message-----
From: Dux Gregis <assets@eden.rutgers.edu>
To: assembly-86@lists.ticalc.org <assembly-86@lists.ticalc.org>
Date: Thursday, April 23, 1998 9:33 PM
Subject: A86: comparing strings
>
>Does someone know a good algorithm for comparing strings?
>
Follow-Ups: