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.
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.
0 Comments