I'm writing a program in assebly using x86 intel processor series and a flat model
can anyome suggest anything about this?
;;;;;;;;;;;;;;;;;;;
input string,40 ;the user enter a characher 'q' for instance
atod string ; now the value in eax as decimal
;;i need to compare the number and if is 'q' to quit
;;i've tried this senario
cmp eax,'q'
jz quit ;;;;;;not working
cmp al,'q' ;;;;;;not again
jz quit
cmp eax,113 ;;;;where 113 is the decimal ascii value of 'q'
jz quit
cmp al,113 ;;;;;nothing
jz quit
cmp al,71 ;;;i didnt not make the convertion here atod
;;and nothing again 71 is hex of 'q'
cmp eax,113 ;;;;same;;nothing
can anyone help?
Thanks in advance
;;;;;;;;;;;;;;;;;;;