bit2 - add [result],ax mov ax,]multiplicand+2] adc...

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

View Full Document Right Arrow Icon
.model medium .stack 100h .data multiplicand dd 1300 multiplier dw 500 result dd 0 .code main proc mov ax,@data mov ds,ax m mov cl,16 mov dx,[multiplier] m checkbit: shr dx,1 jnc skip mov ax,[multiplicand]
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: add [result],ax mov ax,]multiplicand+2] adc [result+2],ax skip: shl [multiplicand],1 rcl [multiplicand+2],1 jnz checkbit j mov ah,4ch int 21h i 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