[A83] Re: Getting and comparing string inputs


[Prev][Next][Index][Thread]

[A83] Re: Getting and comparing string inputs




;HL - string 1
;DE - string 2
;B - number of bytes to compare
compareloop:
        ld c,(hl)
        ld a,(de)
        cp c
        jr nz,comparefailed
        inc hl
        inc de
        djnz compareloop
        ;code here if it passed
comparefailed:
        ;code here if it failed

--
Michael Vincent
Detached Solutions - www.detacheds.com
--
Senior Vice-President/Chief Software Architect
Radical Software - www.radicalsoft.org

----- Original Message -----
From: <JCartmanSP@aol.com>
To: <assembly-83@lists.ticalc.org>
Sent: Friday, June 15, 2001 7:58 PM
Subject: [A83] Getting and comparing string inputs


>
> Could anybody tell me the code needed to set up a string input where the
user
> types something in and the calc compares it with another string?
>
> Thanks,
> Jim
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




References: