8086 program to find the square root of a perfect square root number | Set-2 Read Courses Improve Improve Improve Like Article Like Save Article Save Report issue Report Prerequisite – 8086 program to find Square Root of a number Problem – Write a program to find the square root of a perfect number where starting address for code is 2000 and number is stored at 3000 memory address and store result into 3002 memory address. Example – Algorithm – Move 0000 to register CX immediatelyMove value of memory 3000 into register BXMove CX into AXMultiply value of accumulator with CXCompare AX with BXJump if zero to stepIncrease CX register by 1Jump if no zero to step 3Move content of register CX into memory 3002Stop Program – MemoryMnemonicsOperandsComment2000MOVCX, 0000[CX] <- 00002003MOVBX, [3000][BX] <- [3000]2007MOVAX, CX[AX] <- [CX]2009MULCX[AX] <- [AX] * [CX]200BCMPAX, BX[AX] – [BX]200DJZ2015Jump if zero2010INCCX[CX] <- [CX] + 12012JNZ2007Jump if not zero2015MOV[3002], CX[3002] <- CX2019HLT Stop Explanation – Registers AX, BX, CX, are used for general purpose. MOV is used to transfer the dataINC is used to increase given register by 1JNZ is used to jump to the given step if there is no zeroJZ is used to jump to the given step if there is zeroMUL is used to multiply value of AX with the given registerCMP is used to compare the value of two registersHLT is used to halt the program Last Updated : 15 Sep, 2022 Like Article Save Article Previous 8085 program to reverse 16 bit number Next Pin diagram of 8086 microprocessor Share your thoughts in the comments Add Your Comment Please Login to comment...