Square root of an 8 bit number in 8085

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

Custom Search

Leave a Reply

6 Responses to “Square root of an 8 bit number in 8085”