I have been comparing an fixed string and an input string. But its hard to figure what is the register of the input one, is it al, ah or whatever. I'm just a beginner and this is a painful language for a programmer lol jk. please help I really appreciate it thanks :)
mov dx, offset temp ;string input
mov ah, 0ah
int 21h
mov bl, "a" ;condition
cmp al, bl
jne aw
mov dx, offset msgTrue ;true
mov ah, 09
int 21h
aw: ;false
mov dx, offset msgFalse
mov ah, 09
int 21h
ret
msg db 10, 13, " * ************************************ *****$"
msg1 db 10, 13, " *** * Ticketing System * ***$"
msg2 db 10, 13, " ***** ************************************ *$"
msg3 db 10, 13, " ==========================$"
msg4 db 10, 13, " = (a)Land =$"
msg5 db 10, 13, " = (b)Water =$"
msg6 db 10, 13, " = (c)Air =$"
msg7 db 10, 13, " ==========================$"
msg8 db 10, 13, " Choose Travel Type: $"
temp db 2, 0, 3 dup("$")
msgTrue db 10, 13, " You selected Land$"
msgFalse db 10, 13, " Invalid Input$"