Translate

Arithmetic Operation in Assembly Language.

Arithmetic Operation in Assembly Language.

Introduction: 

The purpose of the experiment is to understand the capability of 8085 microprocessor by performing the following arithmetic operations: 

                                                  (i) Addition of two 8-bit numbers

                                                 (ii) Subtraction of two 8- bit numbers 

                                                (iii) Multiplication of two 8-bit numbers   

                                                 (iv) Division of two 8-bit numbers 

                                                 (v) Addition of two16-bit number.


Theory: Arithmetic Instructions are the instructions which perform basic arithmetic operations such as
addition, subtraction, multiplication, division In 8085 microprocessor, the destination operand is generally the accumulator. We have already been familiarized with the instructions ADD, SUB, DIV, MUL. In case of ADD and SUB instructions, the operands (source and destination) can be of either byte form (8bit) or word form (16bit). For MUL instruction, the multiplier and multiplicand can be both of either byte form or word form and the product is of either word form or double word form (32bit). For DIV instruction, the dividend and divisor are of byte and word forms respectively or double word and word form respectively. Table 1 briefly revisits these four instructions with their effects on the carry flags.


Program:

CODE SEGMENT

            ASSUME CS:CODE, DS:CODE

            MOV AL,0067H

            MOV BL,0021H

            SUB AL,BL

            HLT

            CODE ENDS

END




Program:

CODE SEGMENT

            ASSUME CS:CODE

            MOV AL,0067H

            MOV BL,0067H

            SUB BL,AL 

            HLT

            CODE ENDS

END




Program:

CODE SEGMENT

            ASSUME CS:CODE, DS:CODE

            MOV AL,11

            MOV BL,67

            HLT

            CODE ENDS

END




Program:

CODE SEGMENT

            ASSUME CS:CODE

            MOV AX,7267

            MOV BX,1200H

            MOV DX,1000H

            DIV BX

            HLT

            CODE ENDS

END


Conclusion: Have we are fast time study the Arithmetic Operation in Assembly Language. Arithmetic instructions in Assembly Language are executed in the Arithmetic Logical Unit (ALU) of the computer’s processor, Assembly Language allows us to perform basic unsigned integer arithmetic operation, like-addition, subtraction, multiplication, division. We didn’t face any problems during this experiment. It was a fun and easy experiment.




Switching characteristics of SCR and determination of holding current and latching current.




Post a Comment

0 Comments