je jump if equal to jne jump if not equal to ja jump if above jb jump if below jbe jump if below or equal to jae jump if above or equal to jmp jump (you don't need any compare. unconditional jump) Q1. Write a program to: - take in a character - check to see if the user entered the '!' character. - if they did enter '!', print out 'Y' Q2. Write a program to: - take in a character - check to see if the user entered the '!' character. - if they did enter '!', print out 'Y' ; otherwise print out 'N' ----------------------------------------------------------- Q1. ; take in a character mov ah,01h int 21h ; call dos. AL = character read ; check to see if the user entered the '!' character. cmp AL,21h ; 21h = ASCII for ! ; if they did enter '!', print out 'Y' je somecode jmp part2 somecode:mov ah,02h mov DL,'Y' int 21h ; call dos part2: mov ax, 4C00h ; Terminate program int 21h ; correctly end ----------------------------------------------------------- Q2. ; take in a character mov ah,01h int 21h ; call dos. AL = character read ; check to see if the user entered the '!' character. cmp AL,21h ; condition 21h = ASCII for ! ; if they did enter '!', print out 'Y' je somecode ; condition true jmp part2 ; condition false somecode:mov ah,02h mov DL,'Y' int 21h ; call dos jmp part3: part2: mov ah,02h mov DL,'N' int 21h ; part3: mov ax, 4C00h ; Terminate program int 21h ; correctly end ----------------------------------------------