Program converts from small letter and oppsite written in assempely language
موقع ومنتديات مدينه ماحص - منتدى ماحص :: تحميل برامج , هكر , شروحات , تصميم مواقع , منتديات , برمجه :: منتدى الكمبيوتر والانترنت
صفحة 1 من اصل 1
Program converts from small letter and oppsite written in assempely language
org 100h
.data
x db 'Enter 1 to convert from small letter to capital letter',10,13,'Enter 2 to convert from capital letter to small letter OR another to exit',10,13,'$'
nl db 10,13,'$'
.code
push ax
mov ah,9
mov dx,offset x
int 21h
pop ax
mov ah,1
int 21h
push ax
mov ah,9
mov dx,offset nl
int 21h
pop ax
cmp al,'1'
je l1
cmp al,'2'
je l2
jne l3
l1:
mov ah,1
int 21h
sub al,20h
push ax
mov ah,9
mov dx,offset nl
int 21h
pop ax
mov ah,2
mov dl,al
int 21h
hlt
l2:
mov ah,1
int 21h
add al,20h
push ax
mov ah,9
mov dx,offset nl
int 21h
pop ax
mov ah,2
mov dl,al
int 21h
hlt
l3:hlt
.data
x db 'Enter 1 to convert from small letter to capital letter',10,13,'Enter 2 to convert from capital letter to small letter OR another to exit',10,13,'$'
nl db 10,13,'$'
.code
push ax
mov ah,9
mov dx,offset x
int 21h
pop ax
mov ah,1
int 21h
push ax
mov ah,9
mov dx,offset nl
int 21h
pop ax
cmp al,'1'
je l1
cmp al,'2'
je l2
jne l3
l1:
mov ah,1
int 21h
sub al,20h
push ax
mov ah,9
mov dx,offset nl
int 21h
pop ax
mov ah,2
mov dl,al
int 21h
hlt
l2:
mov ah,1
int 21h
add al,20h
push ax
mov ah,9
mov dx,offset nl
int 21h
pop ax
mov ah,2
mov dl,al
int 21h
hlt
l3:hlt
آدم الشياب- عضو جديد
- عدد الرسائل : 4
تاريخ التسجيل : 27/02/2008
موقع ومنتديات مدينه ماحص - منتدى ماحص :: تحميل برامج , هكر , شروحات , تصميم مواقع , منتديات , برمجه :: منتدى الكمبيوتر والانترنت
صفحة 1 من اصل 1
صلاحيات هذا المنتدى:
لاتستطيع الرد على المواضيع في هذا المنتدى