rc2 - mov [dt1+bx+2],ax mov [dt1+bx],dx mov swap,1 m...

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

View Full Document Right Arrow Icon
.model small . .data . dt1 dw 60,55,45,58 swap db 0 total dw 0 t .code main proc mov ax,@data mov ds,ax mov bx,0 mov [swap],0 loop1: mov ax,[bx+dt1] cmp ax,[dt1 +bx+2] jbe noswap j mov dx,[dt1+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 [dt1+bx+2],ax mov [dt1+bx],dx mov swap,1 m noswap: add bx,2 cmp bx,8 jne loop1 j mov ah,02h add dl,30h int 21h i mov ah,4ch int 21h main endp end main e...
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