; Author: DAVID PELED ; displays upper case to lower case Enter to exit . model small .386 ; to support 32 bits .stack 100h ; Stack with 100h locations 256(10) %D .data ; to declare variables ;...


Edit this existing program to make and create 2 programs:
a. When a user presses a lower case an upper case shows.


b. when a user presses either upper case or
lower case the program will display the opposite which
means that the program detects whether a Upper or
Lower case was pressed.





; Author: DAVID PELED<br>; displays upper case to lower case Enter to exit<br>. model small<br>.386 ; to support 32 bits<br>.stack 100h<br>; Stack with 100h locations<br>256(10)<br>%D<br>.data ; to declare variables<br>; variables to be called here<br>.code<br>main proc<br>L1:<br>mov ah,<br>1<br>; enter key<br>int 21h<br>cmp al, 13 ; if CR then end<br>JZ short L2<br>mov dl, al ; save the key entered to dl<br>ADD DL, 20h ; add 20h<br>mov ah, 6 ; displays the content of dl<br>int 21h<br>32(10)<br>jmp L1<br>L2:<br>mov ax,4C00h ; return to DOS ends to program<br>int 21h<br>main endp<br>end main<br>

Extracted text: ; Author: DAVID PELED ; displays upper case to lower case Enter to exit . model small .386 ; to support 32 bits .stack 100h ; Stack with 100h locations 256(10) %D .data ; to declare variables ; variables to be called here .code main proc L1: mov ah, 1 ; enter key int 21h cmp al, 13 ; if CR then end JZ short L2 mov dl, al ; save the key entered to dl ADD DL, 20h ; add 20h mov ah, 6 ; displays the content of dl int 21h 32(10) jmp L1 L2: mov ax,4C00h ; return to DOS ends to program int 21h main endp end main

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here