Square root of an 8 bit number in 8085

jojo January 18, 2011 6 Comments

AIM

To prepare an assembly language program  to find the square root of an 8 bit number for 8085 microprocessor

PROGRAM

MVI C,01

MVI E,01

LDA 4200

LABEL:SUBB C

JZ LABEL1

INR C

INR C

INR E

JMP LABEL

LABEL1:MOV A,E

STA 4201

HLT

SAMPLE OUTPUT

ADDRESS

DATA

INPUT/OUTPUT

4200

10

Input

4201

04

Output

RESULT

A program to find the square root of a number was prepared and output obtained

Comments
  • mady
    April 1, 2012

    give the process how its runs in the in processor

  • August 5, 2010

    how to find the cube root of a number using 8085????

  • islamian
    March 15, 2010

    this only works for perfect square roots.e.g 4,9,16 etc
    wht if the no is not a perfect root.e.g 18.how to find its decimal portion?

  • Ria
    December 17, 2009

    What is “SUBB” ??
    Is that a command in 8085 ?

  • kusum
    November 10, 2009

    plz give me its algorothm ……

    • admin
      November 13, 2009

      i will add it soon.

Leave a Reply to Magesh Cancel reply

Your email address will not be published. Required fields are marked *