Friday, September 17, 2010

8086 PROGRAMS 05: SQUARE ROOT OF A NUMBER

      MOV AX,[1100]
      MOV BX,0FFFF
      MOV CX,00
L1: INC CX
      ADD BX,02
      SUB AX,BX
      JNZ L1
      MOV [1200],CX
HLT

3 comments:

Nandini Joshi said...
This comment has been removed by the author.
Nandini Joshi said...

This finds out the root of perfect squares only. What about other numbers?

Unknown said...

nice

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

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