NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

; multi-segment executable file template.

data segment
isaret db '>'
giriniz db " Sayi giriniz = $"
sayi1 db 0
sayi2 db 0
sayi3 db 0
satir db 0
ends

stack segment
dw 128 dup(0)
ends

code segment
start:


;Klavyeden girilen 3 rakami sirali olarak ekrana yazan assembly kodunu yazin.;


mov ax, data
mov ds, ax
mov es, ax

lea si,giriniz ;
dongu1: ;
mov ah,2 ;
mov dl,[si] ;
inc si ;
cmp dl,36 ; sayi1 giriniz :
je atla1 ;
int 21h ;

loop dongu1 ;
atla1: ;

mov ah,1 ;
int 21h ; sayi1 i aldik
sub al,30h ;
mov sayi1,al

inc satir
mov ah,2 ;
mov bh,0 ;
mov dl,0 ; satir atlama
mov dh,satir ;
int 10h ;

lea si,giriniz ;
dongu2: ;
mov ah,2 ;
mov dl,[si] ;
inc si ; sayi2 giriniz :
cmp dl,36 ;
je atla2 ;
int 21h ;
;
loop dongu2 ;
atla2:

mov ah,1 ;
int 21h ; sayi2 i aldik
sub al,30h ;
mov sayi2,al

inc satir
mov ah,2 ;
mov bh,0 ;
mov dl,0 ; satir atlama v2
mov dh,satir ;
int 10h

lea si,giriniz ;
dongu3: ;
mov ah,2 ;
mov dl,[si] ;
inc si ; sayi3 giriniz :
cmp dl,36 ;
je atla3 ;
int 21h ;
;
loop dongu3 ;
atla3:

mov ah,1 ;
int 21h ; sayi3 i aldik
sub al,30h ;
mov sayi3,al


mov al,sayi1 ;
cmp al,sayi2 ; sayi1 ve sayi2 yi karsilastirdik
jae kontrol1 ; eger 1.sayi 2.sayidan buyukse
mov ah,sayi2 ; islem yapmadan atlayacak
mov sayi1,ah ; fakat tam tersi yani 1.sayi daha
mov sayi2,al ; kucukse yer degistirecek
kontrol1: ; yani buyukten kucuge dizmis olduk sayilari.

mov al,sayi1 ; sayi1 ve sayi2 nin yerini degistirdik fakat
; eger degistiyse diye al'yi tekrardan guncellemeliyiz

cmp al,sayi3 ; sayi1 ve sayi yi karsilastirmistik
jae kontrol2 ; zaten gerekirse yer degistirdiler
mov ah,sayi3 ; burdada sayi1 ve sayi3 u karsilastiriyoruz
mov sayi1,ah ; onlarda gerekirse yer degistiriyorlar
mov sayi3,al ;
kontrol2: ;

mov al,sayi2 ;
cmp al,sayi3 ; son olarak sayi2 ve sayi3 u karsilastirdik
jae kontrol3 ; sayi2>sayi3 ise islem yapmadan atlayacak
mov ah,sayi3 ;
mov sayi2,ah ;
mov sayi3,al ; sayilari dizmis olduk sira ekrana yazmada
kontrol3: ;

inc satir ;
inc satir ;
mov ah,2 ; satir atlama
mov bh,0 ;
mov dl,10 ; 10. sutun
mov dh,satir ; satir. satir
int 10h ;

mov ah,2 ;
mov dl,sayi1 ; EKRAN CIKTISI :
add dl,30h ;
int 21h ; &sayi1


mov dl,isaret ;
mov ah,2 ; &sayi1 >
int 21h ;

mov ah,2 ;
mov dl,sayi2 ; &sayi1 > &sayi2
add dl,30h ;
int 21h ;

mov dl,isaret ;
mov ah,2 ; &sayi1 > &sayi2 >
int 21h ;

mov ah,2 ;
mov dl,sayi3 ;
add dl,30h ;
int 21h ; &sayi1 > &sayi2 > &sayi3


int 20h
ends

end start ; set entry point and stop the assembler.
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.