Friday, September 17, 2010

8086 PROGRAMS 06: COMMON DIVISOR AND LCM

       MOV AL,[1100]
       MOV BL,[1200]
L1:  DIV BL
       MOV AL,BL
       MOV BL,AH
       ADD AH,00
       JNZ L1
       MOV [1300],AL
       MOV AL,[1100]
       MOV BL,[1200]
       MUL BL
       MOV BL,[1300]
       DIV BL
       MOV [1400],AH
HLT

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | coupon codes