PersianTools Forums

Go Back   PersianTools Forums > برنامه نویسی و طراحی وب، سیستمهای مدیریت سایت > برنامه نویسی

Reply
 
امکانات بيشتر
Old 01-06-2010, 05:49 PM   #1
>-->O
Registered User
 
>-->O's Avatar
 

Join Date: Jan 2010
Location: shiraz
Posts: 121
Send a message via Yahoo to >-->O
Icon1 سورس کدهای اسمبلی

برنامه ای كه 80 كاراكتر را از ورودی بگیرد و حروف اول آنها اگر كوچك بودند به حرف بزرگ تبدیل كند و نمایش بدهد.
PHP Code:
stk segment
dw 64 dup
(?)
stk ends
dts segment
max db 81
len db 
?
str db 80 dup(?)
dts ends
cds segment
assume ss
:stk,ds:dts,cs:cds
main proc far
mov ax
,seg dts
mov ds
,ax
mov es
,ax
mov ah
,0Ah
mov dx
,offset max
int 21h
mov cl
,len
mov ch
,0
mov di
,offset str
mov al
,' '
cld
jmp chk

next
:repne scasb
jcxz finish

chk
:cmp byte ptr [di],'a'

jb next
cmp byte ptr 
[di],'z'
ja next
sub byte ptr 
[di],20h
jmp next

finish
mov byte ptr [di],'$'
mov ah,09
mov dx
,offset str
int 21h
mov ah
,4ch
int 21h
ret
main endp
cds ends
end main 
>-->O is offline   Reply With Quote
Old 01-06-2010, 05:49 PM   #2
>-->O
Registered User
 
>-->O's Avatar
 

Join Date: Jan 2010
Location: shiraz
Posts: 121
Send a message via Yahoo to >-->O
مابقی سورس ها

http://forum.persiancoder.com/showthread.php?tid=135
>-->O is offline   Reply With Quote
Reply

امکانات بيشتر

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +4.5. The time now is 03:44 AM.

PersianTools RSS Feeds


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.