Using NASM, Assembly language programming, (.ASM) Exercise 3: Characters manipul
ID: 3603951 • Letter: U
Question
Using NASM, Assembly language programming, (.ASM)
Exercise 3: Characters manipulation (30 points) Step 1: User enters a character from the English alphabet. Your program stores it. Step 2: User repeat Step 1 until he breaks out by entering "O". Step 3: Your program then outputs the characters in a reverse order of the input sequence. (It does not display "O" that was used to detect the end of the input sequence) For example, if user enters "a", "b", "c","O". your program outputs "c", "b", "a". nint to howrcan input.sesetchar to t the chars one at a time.Explanation / Answer
DATA SEGMENT MESSAGE DB "ENTER CHARACTER :$" X DB ? ENDS CODE SEGMENT ASSUME DS:DATA CS:CODE START: CMP DX,00 JMP _exit: MOV AX,DATA MOV DS,AX LEA DX,MESSAGE MOV AH,9 INT 21H MOV AH,1 INT 21H MOV X,AL MOV AH,4CH INT 21H ENDS END START