sort - mov[num+bx+2],ax mov[num+bx],dx mov swap,1 m noswap:...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
.model small .data . num dw 60,55,45,58 swap db 0 s .code main proc mov ax,@data m start:mov bx,0 mov [swap],0 loop1: l mov ax,[bx+num] cmp ax,[num+bx+2] jbe noswap mov dx,[num+bx+2]
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: mov[num+bx+2],ax mov[num+bx],dx mov swap,1 m noswap: add bx,2 cmp bx,8 jne loop1 j cmp [swap],1 je start mov ah,4ch int 21h main endp end main...
View Full Document

This note was uploaded on 11/06/2010 for the course UBIT 411 taught by Professor Saleemelahi during the Spring '10 term at University of Karachi.

Ask a homework question - tutors are online