Quantcast
Channel: x86 Assembly - Programmers Heaven
Viewing all articles
Browse latest Browse all 152

i need help..

$
0
0
im having a prOblem with my code..

its dOne actually but there's missing..

its a conversion of an uppercase letter into a lowercase..

it is required to display an 'INVALID' whenever i entered a lowercase..

and that is my problem..

here's my code..

please help me..

------------------------------------

.MODEL SMALL
.STACK 100h
.DATA

UpperPrompt DB "Enter an Uppercase letter: $"
DisplayLower DB 13,10, "Lowercase: $"

.CODE

start:
mov ax, @data
mov ds, ax
mov dx, OFFSET UpperPrompt
mov ah, 9h
int 21h

mov ah, 1h
int 21h

mov bl, al

add bl, 32d


mov dx, OFFSET DisplayLower
mov ah, 9h
int 21h

mov dl, bl
mov ah, 2h
int 21h

mov ax, 4c00h
int 21h

end start

------------------------------------

thanks in advance..

Viewing all articles
Browse latest Browse all 152

Trending Articles