Hi all, I'm having a problem with comparing two strings and telling the user if they are equal or not. The program is written in Assembly 8086. (.com extension)
The layout is the following:

1? Hello ;input of first string
2? hello ;input of second string
not equal ;final string (result)

OR

1? house ; input of first string
2? house ; input of second string
equal ; final string (result)

What I've done so far:

a 100
jmp 13f
db 0d,0a,"1s? "
db 0d,0a,"2s? "
db 0d,0a,"equal"
db 0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0
; ..................................
; Prompt
; ..................................
mov cx,1b
mov bx,102
mov ah,2
mov dl,[bx]
int 21
inc bx
loop 145
; ..................................
; First input
; ..................................
mov bx,12b
mov ah,1
int 21
cmp al,0d
je 15e
mov [bx],al
inc bx
jmp 151
;...................................
; Second prompt
;...................................
mov cx,6
mov bx,11d
mov ah,2
mov dl,[bx]
int 21
inc bx
loop 164
; ..................................
; Second input
; ..................................
mov bx,135
mov ah,1
int 21
cmp al,0d
je 17d
mov [bx],al
inc bx
jmp 170

I don't know how to compare the 2 strings that I typed, can someone help me.

What you need to do is write the input algo yourself. What you've done is taken the disassembly from something or someone else and tried to make it look like your own work. This example wouldn't even compile.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.