Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You should read an expression from the user as String format (AH=0AH -> INT 21H). Then you should examine the string char by char and

You should read an expression from the user as String format (AH=0AH -> INT 21H). Then you should examine the string char by char and decide whether inspected char belongs to "Uppercase" or "Lowercase" type. You should print each char type to the screen till you reach at the end of the string denoted as "$" (e.g. For string "Hello$", output should be "Uppercase, Lowercase, Lowercase, Lowercase, Lowercase").

You can add or edit this code.

STACK_SEG SEGMENT STACK USE16 DB 100 DUP(?) STACK_SEG ENDS DATA_SEG SEGMENT 'DATA' USE16 MESSAGE DB 'ASSIGN1',0DH,0AH DB 'Welcome: $' OUTMSG DB 0DH,0AH,'Output: $' INCHAR DB ? INSTRING DB 80, ?, 80 DUP('$') NEWLINE DB 0DH,0AH,'$' DATA_SEG ENDS CODE_SEG SEGMENT PARA 'CODE' PUBLIC USE16 ASSUME CS:CODE_SEG, DS:DATA_SEG, SS:STACK_SEG MAIN PROC FAR PUSH DS XOR AX,AX PUSH AX MOV AX,DATA_SEG MOV DS,AX LEA DX,MESSAGE MOV AH,9 INT 21H MOV AH,1 INT 21H MOV INCHAR,AL MOV AH,0AH LEA DX,INSTRING INT 21H LEA DX,OUTMSG MOV AH,9 INT 21H MOV DL,INCHAR MOV AH,2 INT 21H LEA DX,INSTRING+2 MOV AH,9 INT 21H MOV DX,OFFSET NEWLINE MOV AH,9 INT 21H RET MAIN ENDP CODE_SEG ENDS END MAIN 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago