Tri tab assmbleur 8086

Fermé
rami5100 Messages postés 2 Date d'inscription lundi 30 mars 2015 Statut Membre Dernière intervention 19 juin 2015 - 10 avril 2015 à 02:32
il ya des erreurs...!
svp aidez moi je suis debutant :/

code segment
assume cs:code , ds:data
mov ax ,data
mov ds, ax


data segment
tab db "7","9","4","0","6"
temp db 0
data ends


debut:mov si,offset tab
inc si
mov di,si

com:cmp tab[si],tab[di]
jl permut
cmp tab[di], tab[offset tab+4]
je com2
inc di
jmp com
com2:cmp [si],offset [tab+4]
je affichage
inc si
mov [di],[si+1]
permut:mov temp,tab[di]
mov tab[di],tab[si]
tab[si],temp
jmp com
affichage:mov si,offset tab
mov ah,tab[si]
com2 si,offset [tab+4]
je fin
mov dl,al
mov ah,2
int 21H
inc si
jmp affichage
fin:mov ah,4ch
int 21H
ends
end debut