divide 16 bit number - Divide 16 Bit Numbers by 8 Bit Numbers Code

Divide 16 Bit Numbers by 8 Bit Numbers Code

Posted on

Divide 16 bit numbers by an 8 bit numbers

Introduction to Assembly language:

     

     Assembly level language is the low level programming language which is used to interact with the machine architecture.

     As we are aware, every computer system has a micro processor which understands only the string of 0s and 1s. These are called machine level instructions.These machine level instructions are very difficult and complex to understand and code. Hence a low level assembly language was designed to handle various operations in symbolic code. This requires less data and improves execution speed.

     This assembly code is converted into executable machine instructions by a utility program. This is called as assembler. This whole conversion process is referred as assembly. 

Algorithm : 

Step I       :    Initialize the data segment.

Step II      :    Get the first number in AX register i.e. dividend.

Step III     :    Get the second number in BL i.e. divisor.

Step IV     :    Divide the two numbers.

Step V      :    Display the result.

Step VI     :    Stop

Program :

 

divide 16 bit number - Divide 16 Bit Numbers by 8 Bit Numbers Code

 

 

You can find more assembly language codes here.

Source projectgeek.com