Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/tiplus/www/forum/SSI.php on line 180
This is the assembly stack application !
Post useful routines here (written by you or anybody else).

Posting a routine give you points that you can spend by voting for others routines :
Now some rules :

Code routines

; Compare the string pointed to by HL to the one pointed to by DE
; Return Z if the strings are equals, or NZ if not
;
;Inputs :
; HL = address of the first string
; DE = address of the second string
;
;Outputs :
; HL = address of the first unmatching character
; or end of string if the strings are equals
; DE = same as HL with the second string
; Z : set if strings are equal, unset otherwise
CompStrs:
ld a,(de)
cp (hl)
ret nz
or a
ret z
inc hl
inc de
jr CompStrs
1 votesPlease log in to propose another solution or vote for this routine

Post your routine

You must log in to post routines