z1 - mov al,cl mov ah,0 cmp al,0 je ex jne srs j ok: mov...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
.model small . .data . num1 dw 20,40,10,10,10 n .code . main proc m mov ax,@data mov ds,ax m mov bx,0 mov ax,0 mov cx,0 m abc: add cx,[num1+bx] add bx,2 cmp bx,10 jne abc j mov ax,cx mov bl,10 mov bh,0 m ex: div bl cmp bh,ah je ok ; cmp al,10 ; jge srk mov cl,al mov bh,ah mov dl,al add dl,30h mov ah,02h int 21h mov ah,02h mov dl,bh add dl,30h int 21h
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: mov al,cl mov ah,0 cmp al,0 je ex jne srs j ok: mov bh,ah div bl mov cl,al mov dh,ah mov dl,ah add dl,30h mov ah,02h int 21h mov dl,bh add dl,30h mov ah,02h int 21h i mov al,cl mov ah,0 m cmp al,0 jne ok j srs: mov ah,4ch int 21h jz srs j 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.

Page1 / 2

z1 - mov al,cl mov ah,0 cmp al,0 je ex jne srs j ok: mov...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online